note 96617 modified in function.stristr by danbrown

From: Date: Mon, 08 Mar 2010 17:50:05 +0000
Subject: note 96617 modified in function.stristr by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-166792@lists.php.net to get a copy of this message
Quick way to use this with an array for a needle: <?php $arr = array('search_term1','search_term2','search_term3'); foreach($arr as $key => $search_needle) { if(stristr($haystack, $search_needle) != FALSE) { echo 'execute this code if found'; } } ?> --was-- Quick way to use this with an array for a needle: $arr = array('search_term1','search_term2','search_term3'); foreach($arr as $key => $search_needle) { if(stristr($haystack, $search_needle) != FALSE) { echo 'execute this code if found'; } } http://php.net/manual/en/function.stristr.php

« previous php.notes (#166792) next »