单个文件上传与多个文件上传
标签:tmp each array 结构 php size 多个 bsp ror
//单个文件上传时的数组结构如下:
$array = [
‘file‘ => [
‘name‘ => ‘‘,
‘size‘ => ‘‘,
‘error‘ => ‘‘,
‘type‘ => ‘‘,
‘tmp_name‘ => ‘‘,
],
];
foreach ($array as $value){
print_r($value);
}
$array = [
‘file‘ => [
‘name‘ => [
0 => 1
1 => 1
2 => 1,
],
‘size‘ => [
0 => 1
1 => 1
2 => 1,
],
‘error‘ => [
0 => 1
1 => 1
2 => 1,
],
‘type‘ => [
0 => 1
1 => 1
2 => 1,
],
‘tmp_name‘ => [
0 => 1
1 => 1
2 => 1,
],
]
];
foreach ($array as $value){
print_r($value);
}
单个文件上传与多个文件上传
标签:tmp each array 结构 php size 多个 bsp ror
原文地址:https://www.cnblogs.com/lujieting/p/12466349.html
评论