php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36272 str_split contains an irrelevant example
Submitted: 2006-02-03 03:05 UTC Modified: 2006-02-07 17:59 UTC
From: david at tulloh dot id dot au Assigned:
Status: Closed Package: Documentation problem
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: david at tulloh dot id dot au
New email:
PHP Version: OS:

 

 [2006-02-03 03:05 UTC] david at tulloh dot id dot au
Description:
------------
The documentation for str_split includes a "Examples related to str_split()" (Example 2).

This example does not use str_split() but rather uses preg_split() when str_split() would probably be faster.  It doesn't contribute anything to the knowledge of how to use str_split().

I also can't recall ever seeing an irrelevant example like it before in the documentation.  I would suggest that example 2 simply be deleted.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-07 17:59 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=5f10a42677e15162194fad048e812891cdc9a55e
Log: fix #36272: remove 2nd example, as it has nothing to do with str_split()
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 15:00:02 2025 UTC