if ($var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") { do something }
Regards, Greg -- phpDocumentor http://www.phpdoc.org
Dan J. Rychlik wrote:
This doesnt work as expected.
if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") {
do something;
}
It returns true on all strings. Ive tried using the or operator and the == but these fail as well. Any Ideas?
-Dan
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php