这篇文章介绍的内容是关于php实现日期的加减 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
函数名:strtotime("time");
例:
加1天:strtotime("+1day")
加1个月:strtotime("+1month")
加一年:strtotime("+1year")
减1天:strtotime("-1day")
减1个月:strtotime("-1month")
减一年:strtotime("-1year")
以上就是php实现日期的加减 的详细内容,更多请关注php中文网其它相关文章!
已抢15866个
抢已抢48863个
抢已抢4015个
抢已抢1691个
抢已抢1982个
抢已抢3174个
抢