dallas Tue Sep 10 23:31:41 2002 EDT
Modified files:
/phpdoc/en/reference/array/functions array-splice.xml
Log:
Make this example more clear.
Index: phpdoc/en/reference/array/functions/array-splice.xml
diff -u phpdoc/en/reference/array/functions/array-splice.xml:1.4
phpdoc/en/reference/array/functions/array-splice.xml:1.5
--- phpdoc/en/reference/array/functions/array-splice.xml:1.4 Sun May 12 04:19:28
2002
+++ phpdoc/en/reference/array/functions/array-splice.xml Tue Sep 10 23:31:41
+2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/array.xml, last change in rev 1.14 -->
<refentry id="function.array-splice">
<refnamediv>
@@ -68,7 +68,7 @@
array_pop ($input) array_splice ($input, -1)
array_shift ($input) array_splice ($input, 0, 1)
array_unshift ($input, $x, $y) array_splice ($input, 0, 0, array ($x, $y))
-$a[$x] = $y array_splice ($input, $x, 1, $y)
+$input[$x] = $y array_splice ($input, $x, 1, $y)
]]>
</programlisting>
</para>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php