Posted by AndreaD on 03/17/05 14:50
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
Navigation:
[Reply to this message]
|