|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68 Description for split contradicts itself.
Submitted: 1998-02-13 08:49 UTC Modified: 1998-02-16 16:45 UTC
From: kk at shonline dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0b4 OS: Your Web Server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: kk at shonline dot de
New email:
PHP Version: OS:


 [1998-02-13 08:49 UTC] kk at shonline dot de
In the Web server the documentation of split() contradicts
itself: In the description the order of parameters is reversed
with respect to the example given.

The example works as advertised on my 3.0b3-dev:

kk@kundera:~/Kunden/hobby $ ~/bin/php   
$p = "kris:x:103:100:lall laber";
$q = split(":", $p);
print $q[0];
Content-type: text/html
kk@kundera:~/Kunden/hobby $ 

but in the Description it is:

array split(string string, string pattern, int limit);

which is just the other way around.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-16 16:45 UTC] jim
This has been fixed. The documentation on the website is lagging a bit behind, however.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Feb 04 11:05:48 2023 UTC