I have a variable ($x) that can have 50 different (string) values. I want
to check for 7 of those values and do something based on it ... as I see it
I have 2 options:
1) if (($x=="one") || ($x=="two") || ... || ($x=="seven")) ...
or
2) switch ($x){
case("one"):
case("two"):
...
}
It seems that there might be a more efficient way to do this?? Is there?
Alex