Re: Control Structure problem
| From: | Greg Beaver | Date: | Wed, 17 Sep 2003 00:02:10 +0000 |
| Subject: | Re: Control Structure problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162807@lists.php.net to get a copy of this message | ||
Hi Dan,
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