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] [EMAIL PROTECTED]
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