note 37949 deleted from function.array-slice by pollita

From: Date: Wed, 03 Dec 2003 07:14:53 +0000
Subject: note 37949 deleted from function.array-slice by pollita
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61305@lists.php.net to get a copy of this message
Note Submitter: h.evers@kiel-media.de ---- sorry, but you are wrong! $input = array ("a", "b", "c", "d", "e"); array_splice($input, 3, 0); print_r($input); leads to: Array ( [0] => a [1] => b [2] => c [3] => d [4] => e ) correct is: array_splice($input, 3, 1);

« previous php.notes (#61305) next »