由递归撰写的日志
php 简单 无级分类 无递归
三 9th
记录一下,以便以后使用。
替换成相应的字段.
代码如下:
View Code PHP public static function toTree($rows) {
if ( !is_array($rows) ) return false;
$tree = array();
$index = array();
foreach ( $rows as More >