$minutes = floor($statistics['time'] / 60); $hours = floor($statistics['time'] / (60 * 60)); $days = floor($statistics['time'] / (60 * 60 * 24)); $statistics['time'] = "" . $days . "d, " . $hours . "h, " . $minutes . "m.";
0d, 3h, 210m.