torben Sat Feb 9 18:14:38 2002 EDT
Modified files:
/phpdoc/en/functions array.xml
Log:
Closing Bug #12879
Index: phpdoc/en/functions/array.xml
diff -u phpdoc/en/functions/array.xml:1.158 phpdoc/en/functions/array.xml:1.159
--- phpdoc/en/functions/array.xml:1.158 Sun Feb 3 12:54:57 2002
+++ phpdoc/en/functions/array.xml Sat Feb 9 18:14:38 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.158 $ -->
+<!-- $Revision: 1.159 $ -->
<reference id="ref.array">
<title>Array Functions</title>
<titleabbrev>Arrays</titleabbrev>
@@ -1622,8 +1622,8 @@
</parameter></methodparam>
</methodsynopsis>
<para>
- <function>array_slice</function> returns a sequence of elements
- from the <parameter>array</parameter> specified by the
+ <function>array_slice</function> returns the sequence of elements
+ from the array <parameter>array</parameter> as specified by the
<parameter>offset</parameter> and <parameter>length</parameter>
parameters.
</para>
@@ -1641,6 +1641,11 @@
array. If it is omitted, then the sequence will have everything
from <parameter>offset</parameter> up until the end of the
<parameter>array</parameter>.
+ </para>
+ <para>
+ Note that <function>array_slice</function> will ignore array
+ keys, and will calculate offsets and lengths based on the
+ actual positions of elements within the array.
</para>
<para>
<example>