combine two array in php

## COMBINE OF TWO ARRAYS INTO ONE ARRAY $PRO_QTY_ARR = array(); $TMP_M=0; $TMP_N=0; foreach($product_id_arr as $value) { $PRO_QTY_ARR[$TMP_M][‘P’] = $value; TMP_M++; } foreach($product_qty_arr as $q) { $PRO_QTY_ARR[$TMP_N][‘Q’] = $q; $TMP_N++; } print_r($PRO_QTY_ARR);