Re: [PHP-DOC] http://www.php.net/manual/en/function.array-splice.php From: Jan Lehnardt (jan <email protected>)
Date: 01/23/02

Hi,
On Wed, 23 Jan 2002 19:37:14 +0100
"Fredrik Salomonsson" <fredrik <email protected>> wrote:

> Am I wrong ?
yep,

jan <email protected> ~> cat test.php
<?php
$input = array ("red", "green", "blue", "yellow");
$spliced=array_splice ($input, 2);
var_dump($input);
var_dump($spliced);
?>
jan <email protected> ~> php -q test.php
array(2) {
  [0]=>
  string(3) "red"
  [1]=>
  string(5) "green"
}
array(2) {
  [0]=>
  string(4) "blue"
  [1]=>
  string(6) "yellow"
}

both php 4.0.6 and 4.1.1 show this result.

Jan

-- 
Q: Thank Jan? A: http://geschenke.an.dasmoped.net/