$t = time(); $start = mktime(0,0,0,date("m",$t),date("d",$t),date("Y",$t)); $end = mktime(23,59,59,date("m",$t),date("d",$t),date("Y",$t));
计算当天起始点和结束点时间戳 去当天的数据 $daybegin=strtotime(date("Ymd")); $dayend=$begin+86400;