//时间戳,当前时间永远+23年
echo strtotime("+23 year");
//格式化时间戳,按照年-月-日,时:分:秒的格式显示
echo strtotime("+23 year");
//格式化时间戳,按照年-月-日,时:分:秒的格式显示
echo date("Y-m-d H:i:s",strtotime("+23 year"));
strtotime 默认最高时间为当前时间的23年。
-------------------------------------------------分割线---------------------------------------------------
2015-1-27
今天本地项目突然报错,经过调试发现是strtotime函数的问题。代码如下:strtotime("+23 year")原本是好使的,今天突然无法转换,输出false,改成+22 year 或者更小数值就可以,弄不明白,建议可以使用+15 year作为永久时间