note 83111 added to tutorial.useful
| From: | daniel at osu1 dot php dot net | Date: | Sat, 10 May 2008 15:52:41 +0000 |
| Subject: | note 83111 added to tutorial.useful | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139240@lists.php.net to get a copy of this message | ||
In response to the "Double Negative" post.
I think you missed the line where it says that the function does not return 'true' it
returns a position. So you cannot evaluate == true you must evaluate !== false because strpos() only
returns a number or false.
----
Server IP: 209.41.74.194
Probable Submitter: 24.196.8.194
----
Manual Page -- http://www.php.net/manual/en/tutorial.useful.php
Edit -- https://master.php.net/note/edit/83111
Del: integrated -- https://master.php.net/note/delete/83111/integrated
Del: useless -- https://master.php.net/note/delete/83111/useless
Del: bad code -- https://master.php.net/note/delete/83111/bad+code
Del: spam -- https://master.php.net/note/delete/83111/spam
Del: non-english -- https://master.php.net/note/delete/83111/non-english
Del: in docs -- https://master.php.net/note/delete/83111/in+docs
Del: other reasons-- https://master.php.net/note/delete/83111
Reject -- https://master.php.net/note/reject/83111
Search -- https://master.php.net/manage/user-notes.php