note 25522 added to function.strstr

From: Date: Thu, 26 Sep 2002 15:53:27 +0000
Subject: note 25522 added to function.strstr
Groups: php.notes 
Request: Send a blank email to php-notes+get-37287@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/function.strstr.php http://master.php.net/manage/user-notes.php?action=edit+25522 http://master.php.net/manage/user-notes.php?action=delete+25522 http://master.php.net/manage/user-notes.php?action=reject+25522

« previous php.notes (#37287) next »