php递归方法实现无限分类实例代码
= ('id' => 1, 'pid' => 0, 'name' => '一级11' ),
('id' => 11, 'pid' => 0, 'name' => 'www.jbxue.com 一级12' ),
('id' => 2, 'pid' => 1, 'name' => '二级21' ),
('id' => 10, 'pid' => 11, 'name' => '二级22' ),
('id' => 3, 'pid' => 1, 'name' => '二级23' ),
('id' => 12, 'pid' => 11, 'name' => '二级24' ),
('id' => 13, 'pid' => 12, 'name' => '三级31' ),
('id' => 9, 'pid' => 1, 'name' => '二级25' ),
formatTree(, = 0 = = ( (['pid'] == = formatTree(, ['id'
&& ['son'] = [] =
/php/6729.htmlwww.phpzy.comtrue/php/6729.htmlTechArticlephp递归方法实现无限分类实例代码 = ('id' = 1, 'pid' = 0, 'name' = '一级11' ), ('id' = 11, 'pid' = 0, 'name' = 'www.jbxue.com 一级12' ), ('id' = 2, 'pid' = 1, 'name' = '二级21' ), ('id' = 10, 'pid' = 11, 'name' = '二级22...
PHP之友评论