I want to update second item of the first child array in a multidimensional array
Example Array:
$cars = array
(
array("Volvo",10),
array("BMW",10),
array("Saab",10),
array("Land Rover",10)
);
i want to replace "20" instead "10" from first array
Result:
$cars = array
(
array("Volvo",20),
array("BMW",10),
array("Saab",10),
array("Land Rover",10)
);
$cars[0][1] = 20;