php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51937 Return Values section for explode does not mention the "normal" return case.
Submitted: 2010-05-27 23:43 UTC Modified: 2010-05-28 10:33 UTC
From: mike at pelley dot com Assigned: salathe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mike at pelley dot com
New email:
PHP Version: OS:

 

 [2010-05-27 23:43 UTC] mike at pelley dot com
Description:
------------
For consistency with other entries, the "Return Values" section should mention the normally-expected return, and then all of the "odd" return possibilities.  For explode, the normal return value is not mentioned in this section (i.e. an array of strings).

I'd suggest pre-pending the existing Result Values paragraph with the following paragraph, copied from the description above:

Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimiter. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-28 10:32 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=299897
Log: added normal return value description for explode - fixes bug #51937
 [2010-05-28 10:33 UTC] salathe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2010-05-28 10:33 UTC] salathe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 15:01:28 2024 UTC