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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Thu Feb 27 03:01:24 2020 UTC