Fero Fero - 5 months ago 26
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


echo date("Y",strtotime("-1 year"));
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download