发布网友 发布时间:2022-04-22 07:37
共1个回答
热心网友 时间:2022-04-28 03:53
<?php
$arrReturn = [];
foreach($array as $val) {
if(isset($arrReturn[$val['proct_code']])){
$arrReturn[$val['proct_code']]['proct_code'] = $val['proct_code'];
$arrReturn[$val['proct_code']]['deal_number'][] = $val['deal_number'];
} else {
$arrReturn[$val['proct_code']]['deal_number'][] = $val['deal_number']
}
}
$arrReturn = array_values($arrReturn);
var_mp($arrReturn);
?>