Re: Array_search wildcard

From: Date: Fri, 21 Mar 2003 10:04:51 +0000
Subject: Re: Array_search wildcard
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140567@lists.php.net to get a copy of this message
$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?


« previous php.general (#140567) next »