<?php $time = '01:05'; // 65 echo preg_replace_callback('/(\d{2}):(\d{2})/', function($matches) { return $matches[1] * 60 - $matches[2];}, $time);
You have javascript disabled. You will not be able to edit any code.