答案 0 :(得分:1)
没关系,我通过这样的排序解决了自己的答案
$count = count($_FILES['file']['name']);
$sort_arr = [];
for ($i=0; $i < $count; $i++) {
$sort_arr['file'.$i]['name'] = $_FILES['file']['name'][$i];
$sort_arr['file'.$i]['type'] = $_FILES['file']['type'][$i];
$sort_arr['file'.$i]['tmp_name'] = $_FILES['file']['tmp_name'][$i];
$sort_arr['file'.$i]['error'] = $_FILES['file']['error'][$i];
$sort_arr['file'.$i]['size'] = $_FILES['file']['size'][$i];
}