note 30004 added to function.strpos

From: Date: Mon, 03 Mar 2003 23:21:22 +0000
Subject: note 30004 added to function.strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-44803@lists.php.net to get a copy of this message
Note that strpos will return false if the needle is not found, but will not return true if the needle is found! The following code will not work: $pos = strpos($mystring, "b"); if ($pos === true) { // note: three equal signs // was found... } -- http://www.php.net/manual/en/function.strpos.php http://master.php.net/manage/user-notes.php?action=edit+30004 http://master.php.net/manage/user-notes.php?action=delete+30004 http://master.php.net/manage/user-notes.php?action=reject+30004

« previous php.notes (#44803) next »