note 17016 deleted from function.strpos by nlopess
| From: | nlopess@php.net | Date: | Tue, 25 Jul 2006 11:20:14 +0000 |
| Subject: | note 17016 deleted from function.strpos by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-115126@lists.php.net to get a copy of this message | ||
Note Submitter: Michael-Rudel at gmx dot de
----
The example above for versions older than 4.0b3 should check for integer, since strpos returns an
integer, not a string. So it should read:
// in versions older than 4.0b3:
$pos = strpos($mystring, "b");
if (is_integer($pos) && !$pos) {
// not found...
}