note 23656 deleted from function.strpos by nlopess
| From: | nlopess@php.net | Date: | Tue, 25 Jul 2006 11:21:09 +0000 |
| Subject: | note 23656 deleted from function.strpos by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115147@lists.php.net to get a copy of this message | ||
Note Submitter: dont at spam dot net
----
To: redeagle@chello.nl
Zero (0) is not a false result; it is a valid answer. The function returns 0 because "abc"
does indeed contain "abc" and the first occurence of the target string starts at position
0.
Use === to test if the function returned true or false.