Re: Array_search wildcard
| From: | Liam Gibbs | Date: | Fri, 21 Mar 2003 14:56:58 +0000 |
| Subject: | Re: Array_search wildcard | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140588@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;
> }
> }
Thanks, Marek. With some minor adjustments, this worked out fine!