12-07-2007, 08:57 PM
|
#9 (permalink)
|
|
The Reckoner
Join Date: Sep 2007
Posts: 437
Thanks: 22
|
Quote:
Originally Posted by Matt83
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.
|
|
|
|