php.net |  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
 [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   
<?php
$p = "kris:x:103:100:lall laber";
$q = split(":", $p);
print $q[0];
Content-type: text/html
 
kris
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.


Kristian

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC