svn: /phpdoc/en/trunk/reference/strings/functions/ explode.xml
| From: | Peter Cowburn | Date: | Fri, 28 May 2010 08:32:05 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/strings/functions/ explode.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6753@lists.php.net to get a copy of this message | ||
salathe Fri, 28 May 2010 08:32:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299897
Log:
added normal return value description for explode - fixes bug #51937
Bug: http://bugs.php.net/51937 (Open) Return Values section
for explode does not mention the "normal" return case.
Changed paths:
U phpdoc/en/trunk/reference/strings/functions/explode.xml
Modified: phpdoc/en/trunk/reference/strings/functions/explode.xml
===================================================================
--- phpdoc/en/trunk/reference/strings/functions/explode.xml 2010-05-28 06:03:39 UTC (rev 299896)
+++ phpdoc/en/trunk/reference/strings/functions/explode.xml 2010-05-28 08:32:05 UTC (rev 299897)
@@ -72,12 +72,17 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- If <parameter>delimiter</parameter> is an empty string (""),
+ Returns an <type>array</type> of <type>string</type>s
+ created by splitting the <parameter>string</parameter> parameter on
+ boundaries formed by the <parameter>delimiter</parameter>.
+ </para>
+ <para>
+ If <parameter>delimiter</parameter> is an empty <type>string</type>
(""),
<function>explode</function> will return &false;.
If <parameter>delimiter</parameter> contains a value that is not
contained in <parameter>string</parameter> and a negative
- <parameter>limit</parameter> is used, then an empty array will be
- returned. For any other <parameter>limit</parameter>, an array containing
+ <parameter>limit</parameter> is used, then an empty
<type>array</type>will be
+ returned, otherwise an <type>array</type> containing
<parameter>string</parameter> will be returned.
</para>
</refsect1>