获取上周 上个月的时间戳

// 获取当天时间戳
$day = mktime(0,0,0);
//获取7天前的时间戳
$week = strtotime("-7 day",$day);
// 获取当天时间戳
$day = mktime(0,0,0);

//获取当天前30天的时间戳
$tb_tb = strtotime("-1 month", $day);
原文地址:https://www.cnblogs.com/lcxin/p/10818429.html