相关疑难解决方法(0)

PHP Strtotime -1月-2个月

昨天工作正常,没有更改代码.

echo date("M", strtotime("-3 month", time()) );
echo date("M", strtotime("-2 month", time()) );
echo date("M", strtotime("-1 month", time()) );
echo date("M", time());
Run Code Online (Sandbox Code Playgroud)

它昨天产生的产量正如你所料 - 即4月,5月,6月,7月

今天它与五月五月七月相呼应

有任何想法吗?

提前致谢.

php strtotime

12
推荐指数
3
解决办法
4万
查看次数

标签 统计

php ×1

strtotime ×1