title: Convert seconds into days, hours, minutes and seconds
body: <p>I would like to convert a variable <code>$uptime</code> which is seconds, into days, hours, minutes and seconds.</p>
  
  <p>Example:</p>
  
  <pre class="lang-php prettyprint-override"><code>$uptime = 1640467;
  </code></pre>
  
  <p>Result should be: </p>
  
  <pre class="lang-none prettyprint-override"><code>18 days 23 hours 41 minutes
  </code></pre>