If a variable is one of many things
Posted: Tue May 11, 2010 9:04 pm
What's the easiest way to write an if statement that declares a variable must be one of many things? IE: if ($variable == red, orange, or yellow) { $variable == warm color } ? In my code I need to test if a variable is one of 6 or so things. What's the best way to code this?
Thanks!
Thanks!