Convert a string to seconds with PHP
<p>I have string '6m15s' in PHP that I would like to convert in to time or ideally seconds. I am using the <code>strtotime()</code> function like: </p>

<pre><code>$time = date('H:i:s', strtotime('6m15s'));
echo $time;
</code></pre>

<p>But all I get '01:00:00'. Is this possible to convert my string and if so what would be the best way to do so?</p>