note 25326 added to function.strstr
| From: | xilef at scriptfreaks dot de | Date: | Thu, 19 Sep 2002 18:52:16 +0000 |
| Subject: | note 25326 added to function.strstr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36965@lists.php.net to get a copy of this message | ||
If you want to check if $needle isn't in $haystack:
if(!strstr($haystack,$needle) )
will not work.
if( strstr($haystack,$needle) == false )
Use this.
--
http://www.php.net/manual/en/function.strstr.php
http://master.php.net/manage/user-notes.php?action=edit+25326
http://master.php.net/manage/user-notes.php?action=delete+25326
http://master.php.net/manage/user-notes.php?action=reject+25326