上一页 1 ··· 4 5 6 7 8
摘要: demo$a='';$b;$c=null;$d=0;empty($a); true;empty($b); true;empty($c); true;empty($d); true; 阅读全文
posted @ 2013-11-27 10:08 冯元春 阅读(124) 评论(0) 推荐(0)
摘要: function genTree($items,$id='id',$fid='fid',$son = 'children'){ $tree = array(); //格式化的树 $tmpMap = array(); //临时扁平数据 foreach ($items as $item) { $tmpMap[$item[$id]] = $item; } foreach ($items as $item) { if (isset($tmpMap[$item[$fid]])) { $tmpMap[$item[$fid]][$son][] = &$ 阅读全文
posted @ 2013-11-23 10:37 冯元春 阅读(137) 评论(0) 推荐(0)
摘要: * html,* html body /* 修正IE6振动bug */{background-image:url(about:blank);background-attachment:fixed;}* html .fixed-top /* IE6 头部固定 */{position:absolute; bottom:auto; right:auto;top:expression(eval(document.documentElement.scrollTop));}* html .fixed-right /* IE6 右侧固定 */{position:absolute;right:auto;lef 阅读全文
posted @ 2013-10-24 17:50 冯元春 阅读(99) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-10-08 08:44 冯元春 阅读(83) 评论(0) 推荐(0)
摘要: echo ""; 阅读全文
posted @ 2013-09-18 13:55 冯元春 阅读(183) 评论(0) 推荐(0)
摘要: echo mb_substr(strip_tags($blog['body'],""),0,400,'utf-8')."......"; //滤掉及html标签,只保留 阅读全文
posted @ 2013-09-13 17:45 冯元春 阅读(92) 评论(0) 推荐(0)
摘要: function listDirTree($dirName=null) { $dirName=str_replace("\\","/",$dirName); if(empty($dirName))exit("IBFileSystem:directoryisempty."); if(is_dir($dirName)) { if($dh=opendir($dirName)) { $tree=array(); while(($file=readdir($dh))!==false) { if($f... 阅读全文
posted @ 2013-09-10 11:05 冯元春 阅读(237) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8