note 102374 deleted from ref.pcre by danbrown

From: Date: Fri, 11 Feb 2011 14:57:52 +0000
Subject: note 102374 deleted from ref.pcre by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176908@lists.php.net to get a copy of this message
Note Submitter: gabriel_juchault at msn dot com ---- function preg_count($pattern, $subject, $flags=PREG_PATTERN_ORDER, $offset=0) { $i; return $r = preg_match_all($pattern, $subject, $i, $flags, $offset); } Clearly than an : echo preg_match_all($pattern, $subject, $shrink); And the name preg_count is more expressive.

« previous php.notes (#176908) next »