title: Compound Duration to Seconds
body: <p>Trying to convert Compound Duration to Seconds in php:</p>
  
  <p>examples:</p>
  
  <p>1 hour 3 mins</p>
  
  <p>2 hours 1 min</p>
  
  <p>5 mins</p>
  
  <p>1 min</p>
  
  <p>I have tried strtotime(), is there another built in function to convert to seconds?</p>
  
  <p>Thanks for any help!</p>
  
  <p>Code I have tried $seconds= strtotime('5 mins');</p>