public function listToTree($list) { usort($list, function($a, $b) { if ($a['pid'] == $b['pid']) { return 0; } elseif ($a['pi ...
标签: 列表转树
共 1 篇文章
public function listToTree($list) { usort($list, function($a, $b) { if ($a['pid'] == $b['pid']) { return 0; } elseif ($a['pi ...