#38876 [Opn->Bgs]: i do not see the flag for this

From: Date: Tue, 19 Sep 2006 17:59:19 +0000
Subject: #38876 [Opn->Bgs]: i do not see the flag for this
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-102438@lists.php.net to get a copy of this message
ID: 38876 Updated by: derick@php.net Reported By: itunes66 at gmail dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.1.6 New Comment: It's simply the return value of the function.. .it's in the manual so please read it once more. Previous Comments: ------------------------------------------------------------------------ [2006-09-19 17:53:48] itunes66 at gmail dot com i do not see where it returns the complete number of results matched, could you point this out to me ------------------------------------------------------------------------ [2006-09-19 07:14:47] derick@php.net It already does this, see the documentation at: http://uk.php.net/preg_match_all ------------------------------------------------------------------------ [2006-09-19 03:09:31] itunes66 at gmail dot com Description: ------------ if possible add a constant to make preg_match_all return a number of how many matches there were e.g. PREG_COUNT, PREG_COUNT_MATCHES, or something like that it would be very useful and alot eaisier than running a while loop over the code and incrementing variables in the loop Reproduce code: --------------- none Actual result: -------------- none ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38876&edit=1

« previous php.bugs (#102438) next »