//比如现在时间是“2010-10-06”,加一个月。
echo date("Y-m-d", strtotime("+1 months", strtotime("2010-10-06")));
echo(strtotime("now"));
echo(strtotime("3 October 2005"));
echo(strtotime("+5 hours"));
echo(strtotime("+1 week"));
echo(strtotime("+1 week 3 days 7 hours 5 seconds"));
echo(strtotime("next Monday"));
echo(strtotime("last Sunday"));
PHP中如何给日期加上一个月
最新推荐文章于 2023-03-02 15:54:49 发布