foreach ($menus as $menus_v){ if ($menus_v['parent_id'] == 0) { } else{ // foreach ($$ menus as $menus_v){ if($menus_v['parent_id'] != $menus_v['smid']){ ent_id']]['children'][$menus_v['smid'] ] = $menus_v; } else { . _v; } } #我這樣寫一直有問題
百度無限極分類
百度無限極分類