title: calculating the number of days using strtotime returns wrong result
body: <p>I have two dates stored in a mysql database (Type = date). For example - </p>
  
  <p>Date 1 = 2010-09-20<br>
  Date 2 = 2010-10-20</p>
  
  <p>I want to calculate the number of days between these two dates. So have tried this - </p>
  
  <pre><code>$number_days = (strtotime($date2) - strtotime($date1) / (60 * 60 * 24));
  </code></pre>
  
  <p>But this returns 49</p>
  
  <p>How so?</p>
  
  <p>------------------------------------- UPDATE ------------------------------------------</p>
  
  <p>Ok I realised my problem which was causing some confusion. I was using another function to retrieve date 1 and for various reasons this date was not being returned correctly so the number of days given was actually correct. When I retrieved the correct date from the database my calculation above worked, taking in to account the precedence of / over -</p>
  
  <p>thanks for your responses.</p>