note 44970 deleted from function.stristr by tularis

From: Date: Sat, 21 Aug 2004 20:18:07 +0000
Subject: note 44970 deleted from function.stristr by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75069@lists.php.net to get a copy of this message
Note Submitter: stephan ---- function checks if there is $needle in $haystack anywhere. if so it returns 1 if not it returns 0. <? function instring($needle,$haystack) { $extra = stristr($haystack,$needle); if($extra != $haystack) { return 1; } else { return 0; } } ?>

« previous php.notes (#75069) next »