i am using the following code to calculate the time difference between two values …
$dt1 = date_create($row['date_1']);
$dt2 = date_create($row['date_2']);
$interval = date_diff($dt1, $dt2);
echo $interval->format('%R%h:%i:%s');
my question … how can I change the color of the font to let’s say red when the value of $interval is negative