📜  减去几天php代码示例

📅  最后修改于: 2022-03-11 14:54:28.405000             🧑  作者: Mango

代码示例1
// First date of the month.
$monthFirstDate = date('Y-m-01', strtotime('today'));

// Last date of the month.
$monthLastDate = date('Y-m-t', strtotime('today'));

// Second last date of the month
$monthLastSecondDate = date('Y-m-d', strtotime('-2 day', strtotime('today')));