note 107240 added to function.strpos
| From: | rjeggens at ijskoud dot org | Date: | Tue, 24 Jan 2012 07:38:05 +0000 |
| Subject: | note 107240 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-185721@lists.php.net to get a copy of this message | ||
I lost an hour before I noticed that strpos only returns FALSE as a boolean, never TRUE.. This means
that
strpos() !== false
is a different beast then:
strpos() === true
since the latter will never be true. After I found out, The warning in the documentation made a lot
more sense.
----
Server IP: 69.147.83.197
Probable Submitter: 89.200.201.6
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/107240
Del: integrated -- https://master.php.net/note/delete/107240/integrated
Del: useless -- https://master.php.net/note/delete/107240/useless
Del: bad code -- https://master.php.net/note/delete/107240/bad+code
Del: spam -- https://master.php.net/note/delete/107240/spam
Del: non-english -- https://master.php.net/note/delete/107240/non-english
Del: in docs -- https://master.php.net/note/delete/107240/in+docs
Del: other reasons-- https://master.php.net/note/delete/107240
Reject -- https://master.php.net/note/reject/107240
Search -- https://master.php.net/manage/user-notes.php