Re: http://www.php.net/manual/en/function.array-splice.php

From: Date: Wed, 23 Jan 2002 18:52:16 +0000
Subject: Re: http://www.php.net/manual/en/function.array-splice.php
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969341584@lists.php.net to get a copy of this message
Hi, On Wed, 23 Jan 2002 19:37:14 +0100 "Fredrik Salomonsson" <fredrik@salomonsson.nu> wrote: > Am I wrong ? yep, jan@reifen ~> cat test.php <?php $input = array ("red", "green", "blue", "yellow"); $spliced=array_splice ($input, 2); var_dump($input); var_dump($spliced); ?> jan@reifen ~> 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/

« previous php.doc (#969341584) next »