#35516 [Opn->Csd]: split() should point to str_split() for PHP 5 users trying split('', $str)

From: Date: Fri, 02 Dec 2005 09:35:19 +0000
Subject: #35516 [Opn->Csd]: split() should point to str_split() for PHP 5 users trying split('', $str)
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969371120@lists.php.net to get a copy of this message
ID: 35516 Updated by: vrana@php.net Reported By: arpad@php.net -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2005-12-02 10:08:26] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35516&edit=1

« previous php.doc (#969371120) next »