: ">: preTree($s['childrens']); ?> http://www.bkjia.com/PHPjc/326123.html">
时间:2021-07-01 10:21:17 帮助过:23人阅读
function preTree($cat){
foreach ($cat as $c){
?>">=$c['poper']?>:=t($c['content'])?>
">=$s['poper']?>:=t($s['content'])?>
http://www.bkjia.com/PHPjc/326123.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/326123.htmlTechArticle但是要怎样遍历这个方法产生的二叉树数组呢?以下是我的做法: 代码如下:?php function preTree($cat){ foreach ($cat as $c){ ? pa href="http...