我在$_Files中有两个关联数组,不知道如何循环使用它们。以下是print_r($_FILES)结果:
Array
(
[userfile] => Array
(
[name] => Lilly-Pond-Leo-Kenney.jpg
[type] => image/jpeg
[tmp_name] => C:wamptmpphp189.tmp
[error] => 0
[size] => 429950
)
[userfile1] => Array
(
[name] => LK-3-women.jpg
[type] => image/jpeg
[tmp_name] => C:wamptmpphp18A.tmp
[error] => 0
[size] => 79391
)
)
我不知道如何从[userfile]循环到[userfile1]。如有任何帮助,将不胜感激
foreach($_FILES as $file)
{
//use this loop and remove print_r();
print_r($file);
}