Rumah >pembangunan bahagian belakang >tutorial php >如何生成个类似TREE结构的数组?
数据是上面那样子。
想成长的数组格式如下
array(0=>array('url'=>a.php,'name'=>A页面,'zijiedian'=>array(0=>array('url'=>c.php,'name'=>C页面),1=>array('url'=>e.php,'name'=>E页面)))1=>array('url'=>b.php,'name'=>B页面,'zijiedian'=>array(0=>array('url'=>d.php,'name'=>D页面))))
http://bbs.csdn.net/topics/390364669