php.net |  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
Votes:1
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-08-09 20:47 UTC] php at richardneill dot org
Description:
------------
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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-26 00:17 UTC] cmb@php.net
-Type: Documentation Problem +Type: Feature/Change Request
 [2017-01-28 17:09 UTC] cmb@php.net
-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: Fri Mar 29 06:01:29 2024 UTC