note 42988 deleted from function.preg-match-all by tomsommer

From: Date: Sun, 04 Jul 2004 16:55:16 +0000
Subject: note 42988 deleted from function.preg-match-all by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72536@lists.php.net to get a copy of this message
Note Submitter: Matt AKA Junkie ---- For those of you who spent many sleepless nights wondering why there was no real grep function in PHP, this is it. preg_match_all() should simply be the real preg_grep(), because preg_grep() does not actually grep anything. int times_pattern_found preg_match_all( string regex, string str, array grepped[, int flags[, int offset]] )

« previous php.notes (#72536) next »