作者:bbylooserxd_597 | 来源:互联网 | 2020-08-27 10:30
在php中可以使用“strtotime()”函数实现使时间增加一个月,具体实例:“date("Y-m-d",strtotime("+1months",strtotime("2010-10-06")));”。
php如何使时间增加一个月
使用php的strtotime()函数
实例:比如现在时间5261是“2010-10-06”,加4102一个月。1653
echo date("Y-m-d", strtotime("+1 months", strtotime("2010-10-06")));
php的strtotime的具体应用实例:
推荐教程:《PHP教程》
以上就是php如何使时间增加一个月的详细内容,更多请关注 第一PHP社区 其它相关文章!