Compare a var to two or more values.
Posted: Fri May 18, 2007 12:28 am
How do I compare $var to two or more values?
E.g:
This obviously doesn't work or then I wouldn't be asking this question. 
So how do I do this:
Only in a more compact way, so to speak.
E.g:
Code: Select all
if ($var != "this" && "this")So how do I do this:
Code: Select all
if (($var != "this") && ($var != "that"))