Making a navigation list from database
View Single Post
12-07-2007, 08:57 PM
Join Date: Sep 2007
Originally Posted by
I never saw this before. Whats supposed to be/do?
It just provides a reference (pointer) to the array. You can then add elements to the array via the reference.
I could have just added the elements to the
array, but because we were recursively traversing the array, and we wanted to add nodes to the last parent from the current level, it was easier to use the array reference to keep track of the parent array (node).
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
The Following 2 Users Say Thank You to Karl For This Useful Post:
View Public Profile
Send a private message to Karl
Find More Posts by Karl