If you compare a number with a string or the comparison involves numerical strings, then each string is converted to a number and the comparison performed numerically.
数字和字符串比较,字符串会被转换为数字,Y不含任何的的有效数字字符,因此被转换成 0
var_dump(0 == "a"); // 0 == 0 -> true
var_dump("1" == "01"); // 1 == 1 -> true
var_dump("10" == "1e1"); // 10 == 10 -> true
var_dump(100 == "1e2"); // 100 == 100 -> true