Recursive function to print all values in nested array.
<?php
function printNestedArray($a) {
echo '<blockquote>';
foreach($a as $key => $value) {
echo $key:
if(is_array($value)) {
printNestedArray($value);
} else {
echo $value . '<br />';
}
}
echo '</blockquote>';
}
?>