Posted by Chung Leong on 02/03/06 04:51
Do $this->children[] =& $childnode instead. Tree structures are pretty tricky to deal with in PHP, even in version 5. I usually try to flatten the structure to a hash table instead. You can usually get away with that because you usually only present the tree once.
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming