Home >php教程 >php手册 >php多文件上传数组 转换,

php多文件上传数组 转换,

WBOY
WBOYOriginal
2016-06-13 09:26:42763browse

php多文件上传数组 转换,




























print_r($_FILES['UpLoadFile']);

$arr = array();

if(!empty($_FILES['UpLoadFile'])){
    


    foreach($_FILES['UpLoadFile'] as $k=>$v){
        foreach($v as $kk=>$vv){
            if($kk==$kk){
                $arr[$kk][$k] = $vv;
            };
        }
    }
    print_r($arr);
    exit();
}


print_r($_POST);
print_r($_FILES);

?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn