$found=array();
foreach($array as $key => $value) {
if(ereg('RE.+',$value)) { // optionaly use eregi for case insensitiveness
$found[$key]=$value;
}
}


Liam Gibbs wrote:

Is there such a thing as an array_search wildcard? Say I want to find anything beginning with RE and having zero or more characters following it, how would I do that?





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to