Daily Archive for November 3rd, 2007

Associative Array -> Menu #2

I revised my original code for an algorithm to form a menu from an associative array.  I got rid of the use of echo in favor of pointers, which make the code more pleasant overall.  This helped to eliminate some bugs that I hadn’t noticed.  Also, I made the HTML proper by enclosing the sub-level <ul>s with <li>.  It’s still BYOCSS though…  New code is here.

Share/Bookmark