luis1 Posted July 23, 2011 Share Posted July 23, 2011 Hi I need to know how I can implement an n-ary tree in PHP. Please, if you can help me out with this, I will be very grateful. If you have a complete code in PHP that does that, it would be excellent for me if you can post it here, since I do not know nothing about PHP. Thanks. Link to comment https://forums.phpfreaks.com/topic/242680-n-ary-trees-in-php/ Share on other sites More sharing options...
xyph Posted July 25, 2011 Share Posted July 25, 2011 Nice double negative. If you want someone to code for you, please check out the Freelancer forum. If you want to find existing code that you can plug in, try google. If you don't know anything about PHP, how will you fix it when it breaks? Link to comment https://forums.phpfreaks.com/topic/242680-n-ary-trees-in-php/#findComment-1246458 Share on other sites More sharing options...
teynon Posted July 25, 2011 Share Posted July 25, 2011 Tree: [id = 1] [ PID = 1, ID = 2] [ PID = 1, ID = 3] [ PID = 2, ID = 4] [ PID = 3, ID = 5] This is just like any hierarchy. No, I won't code it for you. Link to comment https://forums.phpfreaks.com/topic/242680-n-ary-trees-in-php/#findComment-1246462 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.