I did research on this, and wasn\'t able to find an exact answer. Most of the questions/answers on here pertaining to this seem to be unfinished. If anyone knows of a fini
Calvin's solution worked for me. Here's the edited version. We can use more nested loops to get sub - sub menu items.
echo '';
foreach ($menu as $parent) {
echo '- ' . $parent . '';
if (is_array($parent)) {
echo '
';
foreach ($parent as $children) {
echo '- ' . $children . '';
}
echo '
';
}
echo ' ';