时间:2021-07-01 10:21:17 帮助过:20人阅读
下次指的是?
public function getTree($data ,$pId=0,$parentId='',$categoryId='',$categoryName='')
{
$html='';
foreach ($data as $k=>$v)
{
if ($v["$parentId"]==$pId)
{
//根据父id查找他下属
$html.=$this->getTree($data, $v["$categoryId"]);
}
}
$html.=$this-> getTree($data, $v["$categoryId"]);
SESSION