note 4412 modified in strpos by ronabop
| From: | ronabop@php.net | Date: | Wed, 13 Dec 2000 06:23:41 +0000 |
| Subject: | note 4412 modified in strpos by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8687@lists.php.net to get a copy of this message | ||
It should be mentioned that u have to use
if(strpos($haystack, $needle) >= "0") {...}
NOT
if(strpos($haystack, $needle) >= 0) {...}
The second code would be always true!
http://www.php.net/manual/function.strpos.php