View Single Post
Old 12-07-2007, 08:57 PM   #9 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

Quote:
Originally Posted by Matt83 View Post
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 $this->m_aList 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.
Karl is offline  
Reply With Quote
The Following 2 Users Say Thank You to Karl For This Useful Post:
Matt83 (12-08-2007), victorius (12-08-2007)