PHP multi-file upload array conversion, _PHP tutorial

WBOY
Release: 2016-07-13 10:20:24
Original
896 people have browsed it

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);

?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/867004.htmlTechArticlephp多文件上传数组 转换, !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" html meta http-equiv="Content-Type" content="text/html; charset=utf-8" body form ac...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!