#php 比较两次与 strtotime 解析函数不起作用

#php compare two times with strtotime parse function doesn't work

我正在努力比较两次。

$t1 = "55:10.01";
$t2 = "11.2";

$res = strtotime($t1) > strtotime($t2);
print($t1.' > '.$t2.' = '.($res?'TRUE':'FALSE'));

结果是假的。如果我理解正确,PHP 文档说字符串 $t1 和 $t2 都应该由 strtotime 解析,但是......:)

知道我做错了什么吗? :)

尝试

$t1 = "55:10.01";
$t2 = "11.2";
if (date($t1) > date($t2)){
  $res = 'true';
}else{
  $res = 'false';
}
print($t1.' > '.$t2.' = '.$res);