PHP父菜单包含子菜单方式 private function getTree($data, $pid = 0) { $tree = []; foreach ($data as $k => $v) { ...