|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-11-26 03:30 UTC] e at arix dot com
Description: ------------ --- From manual page: http://www.php.net/function.split#Description --- the page states the function has been deprecated but doesn't state what replaces it! it should say that PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 18 10:00:02 2025 UTC |
See the "Notes" section further down the page, which says: Note: As of PHP 5.3.0, the regex extension is deprecated in favor of the PCRE extension. Calling this function will issue an E_DEPRECATED notice. See the list of differences for help on converting to PCRE. Tip: preg_split(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to split(). If you don't require the power of regular expressions, it is faster to use explode(), which doesn't incur the overhead of the regular expression engine. Tip: For users looking for a way to emulate Perl's @chars = split('', $str) behaviour, please see the examples for preg_split() or str_split().