note 25326 rejected from function.strstr by victor
| From: | victor@php.net | Date: | Wed, 02 Oct 2002 10:40:37 +0000 |
| Subject: | note 25326 rejected from function.strstr by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37530@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.