php中怎么取得前一个月的时间?

2025-05-18 08:08:13
推荐回答(2个)
回答(1):

date('Ymd',strtotime('+1 month'));

回答(2):

前一个月的现在时间 strtotime("-1 month");