会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
冯元春
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
2013年11月27日
php empty 备忘
摘要: 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)
2013年11月23日
无限分级函数 简单 引用绑值
摘要: 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)
2013年10月24日
ie6 支持fixed
摘要: * 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)
2013年10月8日
php安全
摘要:
阅读全文
posted @ 2013-10-08 08:44 冯元春
阅读(83)
评论(0)
推荐(0)
2013年9月18日
ckeditor 上传图片
摘要: echo "";
阅读全文
posted @ 2013-09-18 13:55 冯元春
阅读(183)
评论(0)
推荐(0)
2013年9月13日
过滤html else <p>
摘要: echo mb_substr(strip_tags($blog['body'],""),0,400,'utf-8')."......"; //滤掉及html标签,只保留
阅读全文
posted @ 2013-09-13 17:45 冯元春
阅读(92)
评论(0)
推荐(0)
2013年9月10日
目录遍历
摘要: 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
公告