📅  最后修改于: 2022-03-11 14:54:09.250000             🧑  作者: Mango
function reorganize($files) {
foreach ($files as $var => $params) {
foreach ($params as $name => $i) {
foreach ($i as $num => $val) {
$images[$var][$name] = $val;
$arr[$num] = $images;
}
}
}
return $arr;
}
Array (
[0] => Array (
[image] => Array (
[name] => white-rabbit-med-crop.jpg
[type] => image/jpeg
[tmp_name] => E:\xampp\tmp\phpC008.tmp
[error] => 0
[size] => 343326 )
)
[1] => Array (
[image] => Array (
[name] => white-rabbit-med-crop.jpg
[type] => image/jpeg
[tmp_name] => E:\xampp\tmp\phpC008.tmp
[error] => 0
[size] => 1429802 )
)
)