Re: multiple OR's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This works...

if ($name == jim || andrea || tommy)

I must have had an extra ( somewhere.

AD

"AndreaD" <andrea.davidson@xxxxxxxxxxxx> wrote in message 
news:20050317122507.34687.qmail@xxxxxxxxxxxxxxxx
> Looking for the most code efficient way to do multiple boolean OR's on one 
> line
>
> if ($name==andrea) OR ($name==john)
>
> Ta
>
> AD 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux