php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53411 Deprecation replacement??
Submitted: 2010-11-26 03:30 UTC Modified: 2010-11-26 10:31 UTC
From: e at arix dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.3.1RC1 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: e at arix dot com
New email:
PHP Version: OS:

 

 [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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-26 10:31 UTC] salathe@php.net
-Status: Open +Status: Bogus
 [2010-11-26 10:31 UTC] salathe@php.net
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().
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 20:01:36 2025 UTC