php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #92 'explode' function mis-documented
Submitted: 1998-02-20 07:03 UTC Modified: 1998-02-22 10:23 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: chrism at FOUR dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0b4 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chrism at FOUR dot net
New email:
PHP Version: OS:

 

 [1998-02-20 07:03 UTC] chrism at FOUR dot net
Either explode is mis-documented, or the documented
features are still to be implemented.

Current doc has as an example (strings.sgml)

$pieces = explode(" ", $pizza);

This currently doesn't work, however (it should build array)

list($x, $y, $x) = explode(" ", $pizza);    does. (CHANGES)

Also, implode/explode arguments not inuitive.
implode takes ($array, " "), while explode is (" ", $array)
... hmm.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-22 10:23 UTC] ssb
Works in current CVS.  The arg order to implode/explode we'll have
to think about.

 [2013-04-02 11:18 UTC] krakjoe@php.net
Automatic comment from SVN on behalf of krakjoe
Revision: http://svn.php.net/viewvc/?view=revision&revision=329978
Log: update for issue #92 missing vital information
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC