note 11280 added to strpos
| From: | laval_ng at yahoo dot com | Date: | Wed, 14 Feb 2001 07:19:01 +0000 |
| Subject: | note 11280 added to strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11035@lists.php.net to get a copy of this message | ||
Fortunately php.net exists else strpos would have got me killed.
I used
if (strpos($haystack,$needle)!==false) //means found, notice !==
Below will not work
if (strpos($haystack,$needle)!=false) //
http://www.php.net/manual/en/function.strpos.php