Re: WHERE is syntax doc'ed for saying: if (expr1 *OR* expr2 *AND* expr3)

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

 




I had been to that page, tried this:
if (stripos(strrev($file), "gpj.") === 0) || (stripos(strrev($file), "fig.") === 0) || (stripos(strrev($file), "gnp.") === 0) { (yes, Jochem, the regExp solution is best, but I am practicing things ;-)

and got
Parse error: syntax error, unexpected T_BOOLEAN_OR in...

You want &&

http://www.php.net/manual/en/language.operators.logical.php


--
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