Re: multiple OR's
| From: | AndreaD | Date: | Thu, 17 Mar 2005 12:50:21 +0000 |
| Subject: | Re: multiple OR's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210970@lists.php.net to get a copy of this message | ||
This works...
if ($name == jim || andrea || tommy)
I must have had an extra ( somewhere.
AD
"AndreaD" <andrea.davidson@silene.co.uk> wrote in message
news:20050317122507.34687.qmail@lists.php.net...
> Looking for the most code efficient way to do multiple boolean OR's on one
> line
>
> if ($name==andrea) OR ($name==john)
>
> Ta
>
> AD