
<?php
$Files = $_FILES['attachment'];
foreach ( $Files as $file ){//遍历取得的数组
if ( !empty( $file['name'] ) ) { //如果文件名不为空,也就是跳过没选择文件的上传
//这这里处理你是上传
move_uploaded_file( $file['tmp_name'], '你要保存的文件名称和路径');
}
}
本文标题: php函数move_uploaded_file批量上传
本文链接:https://www.haomeiwen.com/subject/rxcddttx.html
网友评论