Home >Backend Development >PHP Tutorial >PHP infinite classification algorithm_PHP tutorial
Question
PHP infinite classification algorithm
Solution
Please tell me about the PHP infinite classification algorithm, mainly the problem of classification and sorting. How to make the third-level classification closely under the second-level classification and the second-level classification under the first-level classification (at the same level). In addition, after moving the parent category, how to sort the sub-categories under this category?
Reference answer
There is an infinite classification algorithm based on left and right values
The original poster can search it by himself
You can also check it out on our website
[url=http://www.xmcase.com/phplib.php]Link tag www.xmcase.com/phplib.php[/url]
Reference answer
I thought of an algorithm, but when moving a column, I need to batch update all the sorting values under the column