note 7725 deleted from function.strpos by jimw

From: Date: Thu, 18 Oct 2001 21:25:19 +0000
Subject: note 7725 deleted from function.strpos by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19123@lists.php.net to get a copy of this message
$pos = strpos ($mystring, "b"); if ($pos === false) { //Noot found } Should work this way too... $pos = strpos ($mystring, "b"); if ($pos < 0) { //Noot found }

« previous php.notes (#19123) next »