Convert time to integer in Php
<p>How would you convert time to integer?</p>

<pre><code> string(8) "04:04:07"
</code></pre>

<p>I want this as 4(hours) or much better 4.04(4hours and 4 minutes)</p>

<p>I tried </p>

<pre><code>  $yourdatetime = "04:04:07";
  $timestamp = strtotime($yourdatetime);
</code></pre>

<p>Which results in</p>

<pre><code> int(1458590887)
</code></pre>