note 84094 deleted from function.strpos by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 16:29:18 +0000 |
| Subject: | note 84094 deleted from function.strpos by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154834@lists.php.net to get a copy of this message | ||
Note Submitter: majewsky at gmx dot net
----
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.