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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at richardneill dot org
New email:
PHP Version: OS:

 

 [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-2019 The PHP Group
All rights reserved.
Last updated: Thu May 23 11:01:30 2019 UTC