Date: 01/23/02
- Next message: Jan Lehnardt: "Re: [PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- Previous message: Fredrik Salomonsson: "[PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- In reply to: Fredrik Salomonsson: "[PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- Next in thread: Jan Lehnardt: "Re: [PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- Reply: Jan Lehnardt: "Re: [PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Next message: Jan Lehnardt: "Re: [PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- Previous message: Fredrik Salomonsson: "[PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- In reply to: Fredrik Salomonsson: "[PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- Next in thread: Jan Lehnardt: "Re: [PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- Reply: Jan Lehnardt: "Re: [PHP-DOC] http://www.php.net/manual/en/function.array-splice.php"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

