|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #67816 suggestion: add preg_count() as a dummy alias in the documentation
Submitted: 2014-08-09 20:47 UTC Modified: 2017-01-28 17:09 UTC
Avg. Score:2.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: php at richardneill dot org Assigned:
Status: Open Package: PCRE related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
5 + 8 = ?
Subscribe to this entry?

 [2014-08-09 20:47 UTC] php at richardneill dot org
I propose that preg_count() should exist as a dummy alias [similar to "delete"] within the documentation, pointing to preg_match_all().

It's not very discoverable what is the preg_X counterpart to substr_count(), and the preg_match_all() documentation doesn't make this especially obvious, even when we find it.

Thanks for your time.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-26 00:17 UTC]
-Type: Documentation Problem +Type: Feature/Change Request
 [2017-01-28 17:09 UTC]
-Type: Feature/Change Request +Type: Documentation Problem -Package: Documentation problem +Package: PCRE related
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 03:01:32 2024 UTC