Multi array til menu
Er det muligt at få følgende array:Array ( [Menu1] => Array ( [0] => Frugt [Frugt] => Array( [0] => Ananas [1] => Æble ) [1] => Sub1 [Sub1] => Array ( [0] => Sub2 [Sub2] => Array ( [0] => Sub3 [Sub3] => Array ( [0] => Sub4 [Sub4] => Array ( [0] => Sub5 ) ) ) ) ) [Menu2] => Array ( [0] => Under 2 ) )
til at se sådan ud:
<ul>
<li>Menu1
<ul>
<li>Frugt
<ul>
<li>Ananas</li>
<li>Æble</li>
</ul>
</li>
<li>Sub1
<ul>
<li>Sub2
<ul>
<li>Sub3
<ul>
<li>Sub4
<ul>
<li>Sub5</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Menu2
<ul>
<li>Under 2</li>
</ul>
</li>
</ul>
Hvordan?