我有这样的格式日期 p>
$ y = date('Y');
code> pre>
因此输出为 2015 code> strong> p>
但如果我尝试使用以下代码获得前一年: p>
$ yr = date('Y'($ y,' - 1 year')) ;
echo $ yr;
code> pre>
输出错误。 输出是 1970 code> strong>。 p>
如何获得前一年? p>
div>