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
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: 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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 06:01:27 2025 UTC