note 7725 added to strpos
| From: | dave at arthistory dot cc | Date: | Sat, 12 Aug 2000 14:15:32 +0000 |
| Subject: | note 7725 added to strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1491@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
}
http://www.php.net/manual/function.strpos.php