svn: phpdoc/en/trunk/reference/pcre/functions/ preg-split.xml
| From: | Rasmus Lerdorf | Date: | Mon, 20 Jul 2009 00:22:21 +0000 |
| Subject: | svn: phpdoc/en/trunk/reference/pcre/functions/ preg-split.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4487@lists.php.net to get a copy of this message | ||
rasmus Mon, 20 Jul 2009 00:22:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=284405
Changed paths:
U phpdoc/en/trunk/reference/pcre/functions/preg-split.xml
Log:
Fix bug #48703
Bug: http://bugs.php.net/48703 (Open) unclear specification
of limit option to preg_split
Modified: phpdoc/en/trunk/reference/pcre/functions/preg-split.xml
===================================================================
--- phpdoc/en/trunk/reference/pcre/functions/preg-split.xml 2009-07-20 00:17:24 UTC (rev 284404)
+++ phpdoc/en/trunk/reference/pcre/functions/preg-split.xml 2009-07-20 00:22:21 UTC (rev 284405)
@@ -45,9 +45,10 @@
<listitem>
<para>
If specified, then only substrings up to <parameter>limit</parameter>
- are returned, and if <parameter>limit</parameter> is -1, it actually
- means "no limit", which is useful for specifying the
- <parameter>flags</parameter>.
+ are returned with the rest of the string being placed in the last
+ substring. A <parameter>limit</parameter> of -1, 0 or null means "no
limit"
+ and, as is standard across PHP, you can use null to skip to the
+ <parameter>flags</parameter> parameter.
</para>
</listitem>
</varlistentry>