|
PHP复制代码
if (isset($_FILES[$field]) and is_array($_FILES[$field]['error'])){
for ($i = 0; $i < count($_FILES[$field]['error']); $i++)
{
$pseudo_field_name = '_psuedo_'. $field .'_'. $i;
$_FILES[$pseudo_field_name] = array(
'name' => $_FILES[$field]['name'][$i],
'size' => $_FILES[$field]['size'][$i],
'type' => $_FILES[$field]['type'][$i],
'tmp_name' => $_FILES[$field]['tmp_name'][$i],
'error' => $_FILES[$field]['error'][$i]
);
$success = parent ::do_upload($pseudo_field_name);
}
}
复制代码
请大家帮我解读下上面这段代码,
重点是 : $_FILES[$pseudo_field_name] 这是什么意思?虚拟出来的文件域?$_FILES还能这么用?
|
|