摘要: date_default_timezone_set('Asia/Shanghai');echo strtotime('Today');echo strtotime(date('Y-m-d')); 获取明天凌晨的时间戳 代码:echo strtotime(date('Y-m-d',strtotime('+1 day'))); 附上测试代码: echo strtotime('2012-1... 阅读全文
posted @ 2016-03-10 14:18 jzfan 阅读(267) 评论(0) 推荐(0) 编辑
摘要: controller public function record() { $r = 10; $m = M(); $query = $m->query('select count(1) as count from winner'); $total = $query[0]['count']; $pag 阅读全文
posted @ 2016-03-10 10:49 jzfan 阅读(332) 评论(0) 推荐(0) 编辑