note 42988 added to function.preg-match-all

From: Date: Sun, 06 Jun 2004 04:04:30 +0000
Subject: note 42988 added to function.preg-match-all
Groups: php.notes 
Request: Send a blank email to php-notes+get-70784@lists.php.net to get a copy of this message
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]] ) ---- Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42988 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42988&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42988&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70784) next »