views:

75

answers:

2

I'm finding it very difficult to find anything about creating maintanable, navigatable and verbose tree structures in PHP. I wanted to open it up to the SO community and see who's done what.

The way I can see creating this sort of structure is to have an object for every node, with a reference to the parent or child nodes. I've yet to put anything in code.

A: 

Have a look at the new Datastructures in SPL and the various available iterators

Is that what your are looking for?

Gordon
A: 

Maintainable site navigation is most easily stored in stored in a database. With that being said, MySQL has a wonderful article entitled Managing Hierarchical Data in MySQL.

I have previously mentioned the article on this SO reply.

cballou
I think he is looking for tree structures as in object graphs.
Gordon