php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35516 split() should point to str_split() for PHP 5 users trying split('', $str)
Submitted: 2005-12-02 10:08 UTC Modified: 2005-12-02 10:35 UTC
From: arpad@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2005-12-02 10:08 UTC] arpad@php.net
Description:
------------
The manual page for split() currently points to preg_split() as a way to emulate @chars = split('', $str) in Perl.
In PHP 5 we have str_split(), which is significantly faster and far more intuitive than preg_split() for this usage.
It would also make sense to mention this on the preg_split() page.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-02 10:35 UTC] vrana@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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 04 12:00:03 2025 UTC