Is there is a shorter way to write this:
if($var == 1 || $var == 2 || $var == 3){ echo "something here"; }
I could even have more options, but I was wondering if there was a better way to write that.
Is this were an array is used?
look at [man]in_array[/man]
if(in_array($var,array(1,2,3))) echo "something";
That's what I thought. But I thought I see if I was missing other potential options.
thanks for clearing me up!