<?php
$arr_orderno = [12321,321,321];
$arr_deliverysn = [7,8,9];
$arr_deliverycorpname = ['asd','qwe','zxc'];
$arr_merge = [];
for($i = 0; $i < count($arr_orderno); $i++){
$arr_merge[$i] = [$arr_orderno[$i], $arr_deliverysn[$i], $arr_deliverycorpname[$i]];
}
$arr_key = ['orderno', 'deliverysn', 'deliverycorpname'];
$arr = [];
foreach ($arr_merge as $value) {
$arr[] = array_combine($arr_key, $value);
}
print_r($arr);
preferences:
56.16 ms | 405 KiB | 5 Q