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

From: Date: Tue, 19 Sep 2006 17:53:48 +0000
Subject: #38876 [Bgs->Opn]: i do not see the flag for this
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-102437@lists.php.net to get a copy of this message
ID: 38876 User updated by: itunes66 at gmail dot com -Summary: if possible add a contant to preg_match_all so it returns the number of matches Reported By: itunes66 at gmail dot com -Status: Bogus +Status: Open Bug Type: Feature/Change Request Operating System: Linux PHP Version: 5.1.6 New Comment: i do not see where it returns the complete number of results matched, could you point this out to me Previous Comments: ------------------------------------------------------------------------ [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 (#102437) next »