note 102182 deleted from language.operators.logical by danbrown
| From: | danbrown@php.net | Date: | Tue, 01 Feb 2011 14:00:20 +0000 |
| Subject: | note 102182 deleted from language.operators.logical by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176558@lists.php.net to get a copy of this message | ||
Note Submitter: Aldo "xoen" Giambelluca
----
Why this snippet return false but works as expected using the || operator instead of OR?
$the_bool = (stripos($url, "page1") !== FALSE) OR (stripos($url, "page2") !==
FALSE) OR (stripos($url, "page3") !== FALSE);