note 9647 added to preg_grep
| From: | jraxis dot com at webmaster dot chek dot com | Date: | Thu, 16 Nov 2000 17:57:10 +0000 |
| Subject: | note 9647 added to preg_grep | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7786@lists.php.net to get a copy of this message | ||
PHP3:
function preg_grep($pattern, $array) {
while( list($key, $val) = each($array)) {
if (preg_match("$pattern", $val)) return $val;
};
};
http://www.php.net/manual/function.preg-grep.php