How to get YEAR of previous month using date()
<p>I want to get the year of the previous month.</p>

<p>For example in <code>July 2012</code> I want result <code>2012</code>. 
But in <code>January 2013</code> I want result <code>2012</code> 
and in <code>Feb 2013</code> I want result <code>2013</code></p>

<p>I have searched and found this <a href="http://stackoverflow.com/questions/5489502">How to get previous month and year relative to today, using strtotime and date?</a>
It uses <code>date_create</code> function (i.e. DateTime Class). But I want a solution without using it. i.e. by using simple <code>date()</code> function</p>
