note 17953 deleted from function.array-splice by jimw

From: Date: Fri, 11 Jan 2002 21:50:47 +0000
Subject: note 17953 deleted from function.array-splice by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24715@lists.php.net to get a copy of this message
Follow up example to Jesse@bend.com -- the returned value from array_splice is an array containing the elements that are removed from the starting array. $input = array ("red", "green", "blue", "yellow"); // $input => Array ( [0] => red [1] => green [2] => blue [3] => yellow ) $return = array_splice ($input, 2); // $input => Array ( [0] => red [1] => green ) // $return => Array ( [0] => blue [1] => yellow )

« previous php.notes (#24715) next »