title: Get previous three months with year based on the given month and year
body: <p>Is there any way to get the previous three months if I am giving the year and month as input (in PHP). Suppose I am giving the values,</p>
  
  <pre><code>$month = "2";
  $year = 2016;
  </code></pre>
  
  <p>It should return like below array,</p>
  
  <pre><code>Array ( [0] =&gt; '11 2015' [1] =&gt; '12 2015' [2] =&gt; '01 2016')
  </code></pre>