note 84094 added to function.strpos
| From: | majewsky at gmx dot net | Date: | Fri, 27 Jun 2008 08:51:54 +0000 |
| Subject: | note 84094 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140863@lists.php.net to get a copy of this message | ||
Paul: May it be that the ! operator is evaluated before the ===? In this case, the return value of
strpos (0 in the described case) would be implicitly converted to bool (value true because 0
converts to false). Then, true === false is evaluated to false.
----
Server IP: 217.160.72.57
Probable Submitter: 141.30.81.219
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/84094
Del: integrated -- https://master.php.net/note/delete/84094/integrated
Del: useless -- https://master.php.net/note/delete/84094/useless
Del: bad code -- https://master.php.net/note/delete/84094/bad+code
Del: spam -- https://master.php.net/note/delete/84094/spam
Del: non-english -- https://master.php.net/note/delete/84094/non-english
Del: in docs -- https://master.php.net/note/delete/84094/in+docs
Del: other reasons-- https://master.php.net/note/delete/84094
Reject -- https://master.php.net/note/reject/84094
Search -- https://master.php.net/manage/user-notes.php