How to print a value from mutiple arrays in PHP?
e.g. Here is the structure I have and I want to print filepath from these arryas, here it’s clear that we have two arrays but in my case it’s dynamic. How can I print filepath from unknown number of arrays?
[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] =>
)
)
try:
Example :
Count($arr) = 3;but `$array[3] = undefined;