¡@

Home 

php Programming Glossary: topmark

Convert array of paths into UL list

http://stackoverflow.com/questions/4903668/convert-array-of-paths-into-ul-list

id nav '. n get things started off right directories array topmark 0 submenu 0 foreach PathsArray as value break up each path into.. limb It's the 'Leaf' of the tree so it needs a link if topmark i the previous path had more directories therefore more Unordered.. more Unordered Lists. MenuListOutput . str_repeat ul topmark i Close off the Unordered Lists MenuListOutput . n For neatness..