我在 $_Files 中有 2 个关联数组,无法弄清楚如何遍历它们。以下是 print_r($_FILES) 结果:
Array
(
[userfile] => Array
(
[name] => Lilly-Pond-Leo-Kenney.jpg
[type] => image/jpeg
[tmp_name] => C:\wamp\tmp\php189.tmp
[error] => 0
[size] => 429950
)
[userfile1] => Array
(
[name] => LK-3-women.jpg
[type] => image/jpeg
[tmp_name] => C:\wamp\tmp\php18A.tmp
[error] => 0
[size] => 79391
)
)
我无法弄清楚如何从 [userfile] 循环到 [userfile1]。任何帮助将不胜感激