Home >Backend Development >PHP Tutorial >How to use php to generate data in json format that can extract hierarchical structure?
The picture shows the structure of a table in the database, pid represents the id of the parent node of the current node
How to use php to generate data in json format that can extract the hierarchical structure?