I currently have code that does this:
if($variable == 'string1' || $variable == 'string2' || $variable == 'string3')
except it compares $variable to about 30 strings.
is there a function in PHP that makes this more elegant? in MySQL, i can do this:
$variable in('string1',string2', etc.....)
is there a similar fxn in PHP? i also thought about plugging all the strings into an array and running "in_array".
What would you all recommend?