优化一下遍历多文件数组获取单文件信息代码:
foreach($_FILES as $fileinfo){
foreach ($fileinfo as $key_ => $value) {
foreach($value as $key => $info){
$infos[$key][$key_]=$info;
}
}
print_r($infos);
}
foreach($_FILES as $fileinfo){
foreach ($fileinfo as $key_ => $value) {
foreach($value as $key => $info){
$infos[$key][$key_]=$info;
}
}
print_r($infos);
}
2015-11-26