note 102182 added to language.operators.logical

From: Date: Tue, 01 Feb 2011 11:08:46 +0000
Subject: note 102182 added to language.operators.logical
Groups: php.notes 
Request: Send a blank email to php-notes+get-176554@lists.php.net to get a copy of this message
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); ---- Server IP: 69.147.83.197 Probable Submitter: 93.149.244.18 ---- Manual Page -- http://www.php.net/manual/en/language.operators.logical.php Edit -- https://master.php.net/note/edit/102182 Del: integrated -- https://master.php.net/note/delete/102182/integrated Del: useless -- https://master.php.net/note/delete/102182/useless Del: bad code -- https://master.php.net/note/delete/102182/bad+code Del: spam -- https://master.php.net/note/delete/102182/spam Del: non-english -- https://master.php.net/note/delete/102182/non-english Del: in docs -- https://master.php.net/note/delete/102182/in+docs Del: other reasons-- https://master.php.net/note/delete/102182 Reject -- https://master.php.net/note/reject/102182 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176554) next »