ホームページ >バックエンド開発 >PHPチュートリアル >なぜ再帰が機能しないのでしょうか?

なぜ再帰が機能しないのでしょうか?

WBOY
WBOYオリジナル
2016-06-13 12:34:50917ブラウズ

なぜ再帰は機能しないのでしょうか?

<br>
配列<br>
(<br>
[0] => 配列<br>
(<br>
[0] => 1<br>
[catid] =&gt;
[1] =>
[ParentID] =&gt;
[2] = & gt; 私たちについて <br>
[猫名] = >
[3] => 4<br>
[命令] =&gt;
[4] = & gt; <br>
[アイテム] =&gt;
[5] => 1<br>
[type] =&gt;
[子] = & gt; 配列 <br>
(<br>
                                                                                                                                                                                                                                                          以来
(<br>
                                                                                                                                                             
[猫ID] => 2<br>
                                                                                                                                                   
[親ID] => 1<br>
                                                                                                                                                                                                                                                                                     なぜなら
[猫名] => 私たちについて <br>
                                                                                                                                                                                                                         
[リストオーダー] => 1<br>
                                                                                                                                                                          
[アイテム] => 0<br>
                                                                                                                                                                                 
[タイプ] => 1<br>
)<br>
<br>
                                                                                                                                                                                                                                                                                                          以来
(<br>                                                                                                                                                           
[猫ID] => 3<br>
                                                                                                                                                   
[親ID] => 1<br>
                                                                                                                                                                                                                                                                                             
[猫名] => 会社の名誉<br>
                                                                                                                                                                                                                         以来
声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。