php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63985 Error in documentation
Submitted: 2013-01-14 11:58 UTC Modified: 2013-01-16 14:33 UTC
From: grusaren at yahoo dot se Assigned: googleguy (profile)
Status: Closed Package: Online Doc Editor problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2013-01-14 11:58 UTC] grusaren at yahoo dot se
Description:
------------
---
From manual page: http://www.php.net/function.implode#refsect1-function.implode-
parameters
---

First this is said about the function implode:

-------
Note:

implode() can, for historical reasons, accept its parameters in either order. 
For consistency with explode(), however, it may be less confusing to use the 
documented order of arguments.
-------



Then this is said about the first parameter "glue":

-------
glue
Defaults to an empty string. This is not the preferred usage of implode() as 
glue would be the second parameter and thus, the bad prototype would be used.
-------


What do you want to tell us really? Nothing is ok? Both having glue as the first 
parameter or the second is ok?





Patches

patch.txt (last revision 2013-01-14 11:59 UTC by grusaren at yahoo dot se)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-16 14:32 UTC] googleguy@php.net
Automatic comment from SVN on behalf of googleguy
Revision: http://svn.php.net/viewvc/?view=revision&revision=329161
Log: Removed dubious wording in implode parameter description. Fixes bug #63985.
 [2013-01-16 14:33 UTC] googleguy@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: googleguy
 [2013-01-16 14:33 UTC] googleguy@php.net
This bug has been fixed in SVN, and should show up online in an
hour or three.

Thank you for the report, and for helping us make PHP.net better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 22:01:31 2024 UTC