Fero Fero - 28 days ago 7
PHP Question

How to get previous year using PHP

How am I able to get the value of the previous year using PHP. Are there any predefined functions for it?

Answer Source

try

echo date("Y",strtotime("-1 year"));