$row = $this->m_childlist[$i]->display($row, $sublist); 这是什么意思?该怎么解决

WBOY
Release: 2016-06-13 11:59:43
Original
1091 people have browsed it

$row = $this->m_childlist[$i]->display($row, $sublist); 这是什么意思?
全部代码在这里http://bbs.csdn.net/topics/390805879

下面这一句:

<br /><br />function display($row, $sublist)<br />{<br />  //this is code<br />$row = $this->m_childlist[$i]->display($row, $sublist);   //这一句是什么意思??请指点<br />}<br />
Copy after login

------解决方案--------------------
$this->m_childlist[$i] 是一个 treenode 对象,另贴1段46行:
$this->m_childlist[$count]= new treenode($row['postid'],$row['title'],....

$row = $this->m_childlist[$i]->display($row, $sublist);
的作用是沿着树枝输出所有节点和叶子
------解决方案--------------------
看方法应该是递归遍历树节点。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!