note 44970 added to function.stristr

From: Date: Sat, 21 Aug 2004 18:47:29 +0000
Subject: note 44970 added to function.stristr
Groups: php.notes 
Request: Send a blank email to php-notes+get-75065@lists.php.net to get a copy of this message
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; } } ?> ---- Manual Page -- http://www.php.net/manual/en/function.stristr.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44970 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44970&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44970&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75065) next »