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] 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. Link to comment https://forums.phpfreaks.com/topic/227444-n-level-tree-traversing/#findComment-1173171 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.