note 30004 deleted from function.strpos by didou

From: Date: Sun, 10 Aug 2003 03:00:26 +0000
Subject: note 30004 deleted from function.strpos by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53788@lists.php.net to get a copy of this message
Note Submitter: Anonymous Coward ---- 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... }

« previous php.notes (#53788) next »