如何从 PHP 中的多个数组中打印一个值?
例如,这是我拥有的结构,我想filepath
从这些数组中打印出来,很明显我们有两个数组,但在我的情况下它是动态的。如何filepath
从未知数量的数组中打印?
[field_pic] => Array
(
[0] => Array
(
[fid] => 29
[uid] => 1
[filename] => 011.jpg
[filepath] => sites/default/files/011.jpg
[filemime] => image/jpeg
[filesize] => 154608
[status] => 1
[timestamp] => 1349463183
[list] => 1
[data] =>
)
[1] => Array
(
[fid] => 31
[uid] => 1
[filename] => 019.jpg
[filepath] => sites/default/files/019.jpg
[filemime] => image/jpeg
[filesize] => 158635
[status] => 1
[timestamp] => 1349463188
[list] => 1
[data] =>
)
)