I have two different dimensional arrays.
Array 1:
Array1 ( [0] => Array ( [id] => 123 [price] => 5 [purchase_
If the $array1 and $array2 are mapped by the same indexes, so they have same length, you can try:
$array1
$array2
foreach($array2 as $index=>$quantity){ $array1[$index]['Qty'] = $quantity; }
And it´s done! If you want to keep the original $array1 untouched, you can make a copy before the foreach.