首頁 >後端開發 >php教程 > 为何递归不起作用? 郁闷了

为何递归不起作用? 郁闷了

WBOY
WBOY原創
2016-06-13 12:34:50917瀏覽

为什么递归不起作用? 郁闷了

<br>
Array<br>
(<br>
    [0] => Array<br>
        (<br>
            [0] => 1<br>
            [catid] => 1<br>
            [1] => 0<br>
            [parentid] => 0<br>
            [2] => 关于我们<br>
            [catname] => 关于我们<br>
            [3] => 4<br>
            [listorder] => 4<br>
            [4] => 0<br>
            [items] => 0<br>
            [5] => 1<br>
            [type] => 1<br>
            [child] => Array<br>
                (<br>
                    [0] => Array<br>
                        (<br>
                            [0] => 2<br>
                            [catid] => 2<br>
                            [1] => 1<br>
                            [parentid] => 1<br>
                            [2] => 关于我们<br>
                            [catname] => 关于我们<br>
                            [3] => 1<br>
                            [listorder] => 1<br>
                            [4] => 0<br>
                            [items] => 0<br>
                            [5] => 1<br>
                            [type] => 1<br>
                        )<br>
<br>
                    [1] => Array<br>
                        (<br>
                            [0] => 3<br>
                            [catid] => 3<br>
                            [1] => 1<br>
                            [parentid] => 1<br>
                            [2] => 公司荣誉<br>
                            [catname] => 公司荣誉<br>
                            [3] => 2 <div class="clear">
                 
              
              
        
            </div>
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn