phpeid Posted February 12, 2011 Share Posted February 12, 2011 Hello everybody, i am working on n level category tree structure, for your information the category tree structure image is attached with this post. Let's consider, each of the category have hundreds( n level ) of category in each, i want to traverse each category without using recursive functions, reason being recursive functions are very slow, is there any way to do this?? Thanks, phpeid [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/227444-n-level-tree-traversing/ Share on other sites More sharing options...
doddsey_65 Posted February 12, 2011 Share Posted February 12, 2011 http://articles.sitepoint.com/article/hierarchical-data-database is a good read. the second method(preorder tree traversal) doesnt use recursion. Quote Link to comment https://forums.phpfreaks.com/topic/227444-n-level-tree-traversing/#findComment-1173171 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.