convert my database table to a tree and get leaf nodes in php

前端 未结 2 957
攒了一身酷
攒了一身酷 2021-01-28 18:15

hi i have a database table , i want to set that as a tree structure and get the leaf nodes of that tree .

\"enter

2条回答
  •  青春惊慌失措
    2021-01-28 18:21

    Recursive function can help you to generate parent/child tree. Find below link for more detail:

    http://psoug.org/snippet/Recursive_function_to_generate_a_parentchild_tree_338.htm

提交回复
热议问题