这样的数组如何让它树状显示呢
程序员文章站
2024-01-14 12:06:34
...
这样的数组怎么让它树状显示呢?
Array
(
[1] => Array
(
[id] => 1
[name] => 世界
[pid] => 0
[2] => Array
(
[id] => 2
[name] => 中国
[pid] => 1
[4] => Array
(
[id] => 4
[name] => 湖南
[pid] => 2
)
)
[3] => Array
(
[id] => 3
[name] => 美国
[pid] => 1
)相关文章
相关视频