随笔分类 -  php

摘要:php正则表达式的基础入门,各种元字符详解 阅读全文
posted @ 2014-01-19 00:43 i文学 阅读(311) 评论(0) 推荐(0) 编辑
摘要:php各种字符串处理函数大全 阅读全文
posted @ 2014-01-18 23:13 i文学 阅读(185) 评论(0) 推荐(0) 编辑
摘要:转自csdn//这个星期的星期一 // @$timestamp ,某个星期的某一个时间戳,默认为当前时间 // @is_return_timestamp ,是否返回时间戳,否则返回时间格式 function this_monday($timestamp=0,$is_return_timestamp=true){ static $cache ; $id = $timestamp.$is_return_timestamp; if(!isset($cache[$id])){ if(!$timestamp) $timestamp = time();... 阅读全文
posted @ 2013-11-09 05:00 i文学 阅读(597) 评论(0) 推荐(0) 编辑
摘要:function getDates($start, $end) { $dt_start = strtotime($start); $dt_end = strtotime($end); do{ echo date('Y-m-d', $dt_start).'; } while(($dt_start += 86400) <= $dt_end);}getDates('2013-02-28','2013-03-02'); 阅读全文
posted @ 2013-08-10 19:17 i文学 阅读(386) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示