svn: /phpdoc/en/trunk/reference/array/functions/ array-slice.xml
| From: | Richard Quadling | Date: | Thu, 17 Nov 2011 16:29:13 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/array/functions/ array-slice.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9044@lists.php.net to get a copy of this message | ||
rquadling Thu, 17 Nov 2011 16:29:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=319411
Log:
A short array alters length description.
Fixes bug #60320
Bug: https://bugs.php.net/60320 (Open) inaccuracy in
array_slice documentation for length parameter
Changed paths:
U phpdoc/en/trunk/reference/array/functions/array-slice.xml
Modified: phpdoc/en/trunk/reference/array/functions/array-slice.xml
===================================================================
--- phpdoc/en/trunk/reference/array/functions/array-slice.xml 2011-11-17 16:13:53 UTC (rev 319410)
+++ phpdoc/en/trunk/reference/array/functions/array-slice.xml 2011-11-17 16:29:13 UTC (rev 319411)
@@ -50,7 +50,9 @@
<listitem>
<para>
If <parameter>length</parameter> is given and is positive, then
- the sequence will have that many elements in it. If
+ the sequence will have up to that many elements in it. If the array
+ is shorter than the <parameter>length</parameter>, then only the
+ available array elements will be present. If
<parameter>length</parameter> is given and is negative then the
sequence will stop that many elements from the end of the
array. If it is omitted, then the sequence will have everything