So I came up with something like this.... not sure if it's what you want or if it helps:
<?php
$navgeneral = array(
'domain.com/' => array('Home', 'index.html'),
);
$navreviews = array(
'domain.com/reviews/' => array('First Ever', 'review1.html'),
);
$navanime = array(
'domain.com/anime/' => array('For Kids', 'kids.html'),
);
$navgaming = array(
'domain.com/gaming/' => array('xBox', 'xbox.html'),
);
$navmisc = array(
'domain.com/misc/' => array('Other Junk', 'junk.html'),
);
$navcategories = array(
'general' => array('General', 'general', $navgeneral),
'reviews' => array('Reviews', 'reviews', $navreviews),
'animemanga' => array('Anime/Manga', 'animemanga', $navanime),
'gaming' => array('Gaming', 'gaming', $navgaming),
'misc' => array('Miscellaneous', 'misc', $navmisc)
);
// Loop through categories showing all subsequent links:
echo '<ul>';
foreach($navcategories AS $cat)
{
echo '
<li style="min-height: 15px;"><div>', $cat[0], '</div>
<ul>';
foreach($cat[2] AS $sub)
{
echo '
<li style="min-height: 15px;"><div><a href="', key($cat[2]), $sub[1], '">', $sub[0], '</a></div></li>';
}
echo '
</ul>
</li>';
}
echo '
</ul>';
?>
You never specified too well your array setup, so I can't be sure that's what will work for your case. But it's something for you to work off of.
Almost forgot the output:
*
General
o
Home
*
Reviews
o
First Ever
*
Anime/Manga
o
For Kids
*
Gaming
o
xBox
*
Miscellaneous
o
Other Junk