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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Thu Nov 21 17:01:32 2024 UTC