Creating Tree Structure from associative array
| From: | Angelo Zanetti | Date: | Thu, 19 Oct 2006 14:08:58 +0000 |
| Subject: | Creating Tree Structure from associative array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-243337@lists.php.net to get a copy of this message | ||
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@zlogic.co.za <mailto:angelo@zlogic.co.za>