<?php $time_left = '6h : 27m : 45s'; $time_right = '6h : 27m : 5s'; $parts_left = explode(":", $time_left); $parts_right = explode(":", $time_right); $left = intval($parts_left[0]).":".intval($parts_left[1]).":".intval($parts_left[2]); $right = intval($parts_right[0]).":".intval($parts_right[1]).":".intval($parts_right[2]); if (strtotime($left) > strtotime($right)) { echo "Timer to the left is bigger"; }
You have javascript disabled. You will not be able to edit any code.