html文件
<meta charset='utf-8'>
<form method="post"enctype='multipart/form-data'action="upload.php">
<input type="file" name="mFile[]"><p>
<input type="file" name="mFile[]"><p>
<input type="file" name="mFile[]"><p>
<input type="file" name="mFile[]"><p>
<input type="file" name="mFile[]"><p>
<input type="submit"value='上 传'>
</form>
php文件
//echo '<pre>';
//
//print_r( $_FILES );
//$mfile = $_FILES['mFile'];
//
//$tmps = $mfile[ 'tmp_name' ];
//
//$dname = '../son/img/';
//
//$fn = $mfile['name'];
//
//foreach( $fn as $k=>$v ){
// $dfn = $dname . $v;
// $tmp = $tmps[ $k ];
// move_uploaded_file( $tmp, $dfn );
//}
//if( strstr( $fn, '.jpeg' ) )
// $fn = str_replace( '.jpeg', '.jpg', $fn );
//
//move_uploaded_file( $tmp, $fn );
$arr = array();
$arr[] = 1;
$arr[] = 11;
$arr[] = 111;
$arr[] = 1111;
$arr[] = 11111;
print_r( $arr );