That depends on what your data structure is, exactly, and what sort of tree structure you want on the other side. Please be more specific. On Thursday 19 October 2006 09:08, Angelo Zanetti wrote: > Hi all, > > I have an associative array, which contains parent and child > relationships. I've searched the web for creating a tree structure from > this and found a few good sites but doesnt help 100% perhaps someone can > point me in the correct direction? I've started to code it got to a > point where I cant go any further, the code is pseudo code and dont want > to reinvent the wheel. > > any suggestions would be really appreciated. > > Thanks in advance > > -- > ------------------------------------------------------------------------ > Angelo Zanetti > Systems developer > ------------------------------------------------------------------------ > > *Telephone:* +27 (021) 469 1052 > *Mobile:* +27 (0) 72 441 3355 > *Fax:* +27 (0) 86 681 5885 > * > Web:* http://www.zlogic.co.za > *E-Mail:* angelo@xxxxxxxxxxxx <mailto:angelo@xxxxxxxxxxxx> -- Larry Garfield AIM: LOLG42 larry@xxxxxxxxxxxxxxxx ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php