function convert_to_seconds


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function convert_to_seconds($input)
  2. {
  3. return strtotime($input.' 01-01-1970') + 3600;
  4. }
  5.  
  6. echo convert_to_seconds('01:23:54');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.