Re: OR statement

From: Date: Fri, 25 Mar 2005 03:44:43 +0000
Subject: Re: OR statement
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211541@lists.php.net to get a copy of this message
> This work fine, however, I would like to add to the criteria above. I would > like to say: > > if ($audio == "Cool" or "junk" or "funky"){ > > ... > if (in_array($audio,array("Cool","junk","funky"))) { ... } not the most elegant looking but it gets the job done. /josh w

« previous php.general (#211541) next »