//得到据某日期30天后的日期
$aa=strtotime('2010-12-31 12:48:17');
echo date("Y-m-d h:i:s",strtotime("+30 day",$aa));
$aa=strtotime('2010-12-31 12:48:17');
echo date("Y-m-d h:i:s",strtotime("+30 day",$aa));
本文介绍了一种使用PHP获取指定日期30天后的确切时间的方法。通过设置初始时间为2010年12月31日12点48分17秒,演示了如何利用strtotime函数来实现日期的加法运算。

被折叠的 条评论
为什么被折叠?