title: PHP Format Datetime to Not Have Zeros
body: <p>I have the following query to display a formatted <code>datetime</code> object</p>
  
  <pre><code>echo $interval-&gt;format("%hh %im %ss");
  </code></pre>
  
  <p>which will return time as something like <code>0h 5m 12s</code> or <code>3h 15m 2s</code></p>
  
  <p>Is there a way to elegantly return the datetime to not have 0s in the front? I.e. instead of <code>0h 0m 3s</code>, it would just display <code>3s</code></p>