title: Subtracting two dates in php
body: <p>I have got two dates in php</p>
  
  <pre><code>$date1 = 'May 3, 2012 10:38:22 GMT'
  
  $date2 = '06 Apr 2012 07:22:21 GMT'
  </code></pre>
  
  <p>Then I subtract both of them </p>
  
  <pre><code>$date2 - $date1
  </code></pre>
  
  <p>, and get</p>
  
  <pre><code>Result:6
  </code></pre>
  
  <p>Why is the result 6 and not 27? ... ? How can I subtract the two dates, and make it return me a result based on month differences while subtracting the  years &amp; days &amp; time ?</p>