I have this situation:
$qty = array(1) {[0]=> array(1) { [\"qty\"]=> string(5) \"35254\" } $price = array(1) {[0]=> array(1) { [\"price\"]=> string(5
May be it's that you want:
$res = array(); foreach($qty as $k => $v){ $res[$k] = array_merge($qty[$k],$price[$k]); }
The result :
array(1) {[0] => array(2) { 'qty' => string(5) "35254" 'price' => string(4) "1000" } }