标签:rmi amp ret list cti array turn his mis
private function tree_data(&$list, $parent){
$tree = array();
foreach($list as $row) {
if($row[‘permission_parent_id‘] == $parent) {
$row[‘children‘] = $this->tree_data($list, $row[‘permission_id‘]);
$tree[] = $row;
}
}
return $tree;
}
标签:rmi amp ret list cti array turn his mis
原文地址:http://www.cnblogs.com/chenkg/p/6088259.html