摘要: <?php function genTree($items,$id='id',$pid='pid',$son = 'children'){ $tree = array(); $tmpMap = array(); foreach ($items as $item) { $tmpMap[$item[$i 阅读全文
posted @ 2017-05-19 11:29 /折磨 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <?php $a = ''; $b = ""; $c = null; $d = array(); $e = ' '; $f = 0; $g = "0"; var_dump( is_null($a)); var_dump( is_null($b)); var... 阅读全文
posted @ 2017-05-19 11:27 /折磨 阅读(169) 评论(0) 推荐(0) 编辑