foreach ($menus as $menus_v){ $$ menus as $menus_v){ if($menus_v['parent_id'] != $menus_v['smid']){ $a[$menus_v['parent_id']]['children'][$menus_v['smid'] ] = $menus_v; #I have always had problems writing like this
Baidu Infinitus Classification
Baidu Infinitus Classification