输入banner图图片脚本导航/分类

php实现日期的加减

这篇文章介绍的内容是关于php实现日期的加减 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下

函数名:strtotime("time");

例:

加1天:strtotime("+1day")

加1个月:strtotime("+1month")

加一年:strtotime("+1year")

减1天:strtotime("-1day")

减1个月:strtotime("-1month")

减一年:strtotime("-1year")

以上就是php实现日期的加减 的详细内容,更多请关注Gxl网其它相关文章!