Jump to content

Variables with multipal values?


MetalSmith

Recommended Posts

To extend Maq's reply:

 

range()

 

Yes that will work, but not sure how variant your numbers will be.  You can just check to see if a value is in the array, for example:

 

$arr = array(1,2,3);
if(in_array(1, $arr))
{
   echo "true"; 
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.