note 25522 deleted from function.strstr by betz
| From: | betz@php.net | Date: | Sat, 12 Nov 2005 08:35:58 +0000 |
| Subject: | note 25522 deleted from function.strstr by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98461@lists.php.net to get a copy of this message | ||
Note Submitter: nicolas at bougues dot net
----
The following expression
strstr ("0", "0") == FALSE
is TRUE, which is obviously not what one's want when comparing to FALSE.
If you just want to know iff haystack contains needle, without such ambiguity, use is_string (strstr
("0", "0")), which will evaluate to TRUE.