This gist contains a convenient script to loop through a multiple nested php array and return it in a neat and organized html format.
// add sample array.php file, in your case you might just need to add your
// loop variable and remove the include 'example_array.php' statement
include 'example_array.php';
include 'loop.php';
loopthrough($my_nested_array);
- my_nested_array - nested array you want to loop through passed into loopthrough function.