|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: php at richardneill dot org
New email:
PHP Version: OS:


 [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: Thu Apr 18 08:02:42 2024 UTC