Ok, I know there is an accepted answer, but ... for more special cases, you can also use this:
array_map(function($n) { echo $n['filename']; echo $n['filepath'];},$array);
Or in a more simple way:
function printItem($n){ echo $n['filename']; echo $n['filepath']; } array_map('printItem', $array);
This will allow you to manipulate data in a simpler way.
obsergiu May 13 '16 at 16:58 2016-05-13 16:58
source share