//本周
$day = date(‘w‘);
$beginTime = date(‘Y-m-d‘,strtotime("-{$day}days"));
//本月
$day = date(‘d‘)-1;
$beginTime = date(‘Y-m-d‘,strtotime("-{$day}days"));
php 如何统计本周 本月
原文地址:http://www.cnblogs.com/eddief/p/7483928.html
//本周
$day = date(‘w‘);
$beginTime = date(‘Y-m-d‘,strtotime("-{$day}days"));
//本月
$day = date(‘d‘)-1;
$beginTime = date(‘Y-m-d‘,strtotime("-{$day}days"));
php 如何统计本周 本月
原文地址:http://www.cnblogs.com/eddief/p/7483928.html