标签:tree

php

php 递归查询tree

1

pren 发布于 2021-10-15

代码如下: //整理数组 foreach($data as $key => $value){ $res[$value['id']] = $value; $res[$value['id']]['children']=[]; } unset($data); //查询子孙 foreac...

阅读(419)评论(0)赞 (0)