标签: php time compare
如何在PHP中将两次与毫秒进行比较?也就是说,我有这样的时间:
答案 0 :(得分:4)
试试这个:
// Parses the inputed string sscanf('00:38.673', "%d:%d.%d", $minutes, $seconds, $miliseconds); // Convert it to miliseconds $mseconds = $seconds * 1000 + $minutes * 60 * 1000 + $miliseconds;