Array splice with multidimensionals??
Posted: Mon Mar 28, 2005 5:52 am
I want to add some variables in an specific part of an array which inside another:
I allways get the following message:
Warning: array_splice(): The first argument should be an array
Any hints???
Code: Select all
$distances=array(array(1,0),array(33,44,89),array(568,88,99));
$top=count($distances);
echo $top;
for($m=$key;$m<$top;$m++){
array_splice($distances[$m], $key, 0, "$changearray[$m]");
}Warning: array_splice(): The first argument should be an array
Any hints???