摘要: 1 2 3 4 5 select hours interval 2 6 7 85 86 87 88 按天统计: 89 90 至 91 92 统计 93 94 95 阅读全文
posted @ 2016-07-13 19:58 _DongGe 阅读(479) 评论(0) 推荐(0) 编辑
摘要: $str = '1,2,56';echo substr(strrchr($str, ","), 1); 阅读全文
posted @ 2016-07-13 16:30 _DongGe 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 计算时间的年月日 3 * 2016-07-12 4 */ 5 function diffDate($date1,$date2){ 6 $datestart= date('Y-m-d',strtotime($date1)); 7 if(strtotime($datestart)>strtoti... 阅读全文
posted @ 2016-07-12 20:26 _DongGe 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 默认 VC 生成的 EXE 文件的图标很大众,可以根据以下办法修改 exe 的图标。 以 Visual C++ 6.0 为例: 1. 创建项目,添加代码,并且保证项目可以正常编译。 2. 为项目增加资源文件: 3. 在资源文件中导入图标 4. 重新编译项目,exe 的图标就会变成刚刚导入的图标。 阅读全文
posted @ 2016-07-01 09:58 _DongGe 阅读(1825) 评论(2) 推荐(0) 编辑
摘要: 原字符串1,2,3,4,5,6, 去掉最后一个字符",",最终结果为1,2,3,4,5,6 代码如下: 系统自带的函数即可实现这样的效果,两种方法: 阅读全文
posted @ 2016-06-30 11:21 _DongGe 阅读(137) 评论(0) 推荐(0) 编辑
摘要: strip_tags() 函数剥去字符串中的 HTML、XML 以及 PHP 的标签。 阅读全文
posted @ 2016-06-30 11:20 _DongGe 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1 $str=preg_replace("/]*?src\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i", " ", $str); //过滤img标签 2 3 $str=preg_replace("/\s+/", " ", $str); //过滤多余回车 4 5 $str=preg_replace("//si","",$str); //注释 8 ... 阅读全文
posted @ 2016-06-30 11:19 _DongGe 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 这篇文章主要介绍了php计算时间几分钟前、几小时前、几天前的几个函数、类分享,需要的朋友可以参考下 一、函数实现实例1: 实例2: 实例3: 实例4: 二、类的实现 转自:http://blog.csdn.net/china_skag/article/details/37569505 阅读全文
posted @ 2016-06-20 20:30 _DongGe 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 在PHPCMS的安装目录下,打开\phpcms\libs\functions\global.func.PHP 阅读全文
posted @ 2016-06-17 11:54 _DongGe 阅读(960) 评论(0) 推荐(0) 编辑
摘要: 每次在本地做好网站上线之后都得批量替换域名链接,太繁琐 阅读全文
posted @ 2016-06-17 11:31 _DongGe 阅读(796) 评论(0) 推荐(0) 编辑