摘要: 1 <?php 2 function tree($arr, $pid=0, $level=0){ 3 static $list = array(); 4 foreach($arr as $v){ 5 if($v['parent_id'] == $pid){ 6 $v['level'] = $leve 阅读全文
posted @ 2016-02-19 14:55 hell0x 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 function my_scandir($dir){ 3 $files = array(); 4 if(is_dir($dir)){ 5 if($handle = opendir($dir)){ 6 while(($file = readdir($handle)) !== fal 阅读全文
posted @ 2016-02-19 14:40 hell0x 阅读(141) 评论(0) 推荐(0) 编辑