摘要: 在php7以上版本因为数组结构的改变很多网上转换为树状数组的实例已经无法使用了 public function list_to_tree($list, $pk='id', $pid = 'pid', $child = 'children', $root = 0) { //创建Tree $tree = 阅读全文
posted @ 2020-06-28 14:28 代码书写人生 阅读(614) 评论(0) 推荐(0) 编辑