I have an array:
<?php
$var1 = "mike";
$var2 = 3;
$var3= "red";
$arr= array("uno"=> array($var1,$var2,$var3));
$arr['uno'][]=array("kim",5, "green");
?>
Thus, the array looks like this:
Array ( [uno] => Array ( [0] => jim [1] => 3 [2] => red ) [0] => Array ( [0] => kim [1] => 5 [2] => green ) )
I am unable to edit any of the values in the array, for example if I wanted to change the name "Mike" to "Jim" I tried to do this:
$arr["uno"][0]="jim"
But the value "mike" doesn't change. Any ideas???