Make this example more clear.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@95445 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Dallas Wang 2002-09-11 03:31:41 +00:00
parent e430940b25
commit 3612f5240a

View file

@ -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_push ($input, $x, $y) array_splice ($input, count ($input), 0,
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>