title: time subtract mysql and php
body: <p>I want to find the time difference between a mysql timestamp and the time now in php.</p>
  
  <pre><code>$timesince = strtotime("now") -  $row['DateTime'];
  </code></pre>
  
  <p>This is my attempt at doing it but it doesn't seem to work.</p>
  
  <p>Also, really ideally I'd like the output to be in a nice format like: 34 minutes ago,2 hours 5 minutes ago 4,days 2 minutes ago etc.</p>
  
  <p>Really, really appreciate any help on this.</p>