note 37949 added to function.array-slice

From: Date: Wed, 03 Dec 2003 04:38:03 +0000
Subject: note 37949 added to function.array-slice
Groups: php.notes 
Request: Send a blank email to php-notes+get-61301@lists.php.net to get a copy of this message
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); ---- Manual Page -- http://www.php.net/manual/en/function.array-slice.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37949 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37949&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37949&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61301) next »