title: PHP DateTime round up to nearest 10 minutes
body: <p>I'm retrieving a datetime from a mysql field but I need to round it <strong>up</strong> to the nearest 10 minutes.</p>
  
  <p>For example, If the datetime is 2013-11-06 14:00:01, I'd like to return the time as 6/11/2013 14:10.</p>
  
  <p>What's the easiest way to do this?</p>
  
  <pre><code>$datetime = new DateTime($mysqldata);
  
  echo $datetime-&gt;format('d/m/Y G:i');
  </code></pre>
  
  <p>Any advice appreciated.</p>
  
  <p>Thanks.</p>