note 8406 added to strpos
| From: | juliano at brasileiros dot com dot br | Date: | Mon, 11 Sep 2000 03:39:42 +0000 |
| Subject: | note 8406 added to strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4696@lists.php.net to get a copy of this message | ||
the right code is:
// in versions older than 4.0b3:
$pos = strpos ("b", $mystring);
if (!is_string ($pos) && !$pos)
{
// not found...
}
http://www.php.net/manual/function.strpos.php