您好,欢迎访问一九零五行业门户网

php实现日期的加减

这篇文章介绍的内容是关于php实现日期的加减 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
函数名:strtotime(time);
例:
加1天:strtotime(+1day) 
加1个月:strtotime(+1month) 
加一年:strtotime(+1year)
减1天:strtotime(-1day) 
减1个月:strtotime(-1month) 
减一年:strtotime(-1year)
以上就是php实现日期的加减 的详细内容。
其它类似信息

推荐信息