我是 php 的初学者,我有一个变量,关于上传图像的信息
我得到一个多维数组
Array
(
[0] => Array
(
[errors] => Array
(
)
[path] => addons/uploads/albums/1/1/rDtKgyVAvTjSkLA.jpg
[filename] => rDtKgyVAvTjSkLA.jpg
[original_name] => rachaelCache_5750270_thm.jpg
[resizes] => Array
(
[0] => 1
[1] => 1
)
)
[1] => Array
(
[errors] => Array
(
)
[path] => addons/uploads/albums/1/1/qTLglBgAPxvDFtr.png
[filename] => qTLglBgAPxvDFtr.png
[original_name] => Screen Shot 2013-03-02 at 11.28.48 AM.png
[resizes] => Array
(
[0] => 1
[1] => 1
)
)
)
但是当我 foreach 它时,我只能得到一个结果
foreach ($upload as $row) {
echo $row['filename'];
}
请有人告诉我为什么会这样?