From 3612f5240a86f923e10a0776eaa99928725d6594 Mon Sep 17 00:00:00 2001 From: Dallas Wang Date: Wed, 11 Sep 2002 03:31:41 +0000 Subject: [PATCH] Make this example more clear. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@95445 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/array-splice.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/array/functions/array-splice.xml b/reference/array/functions/array-splice.xml index 1aba8b4669..91a9b65870 100644 --- a/reference/array/functions/array-splice.xml +++ b/reference/array/functions/array-splice.xml @@ -1,5 +1,5 @@ - + @@ -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) ]]>