PHP: PHP 型の比較表 - Manual - PHP: Hypertext Preprocessor
Be wary of string-comparison where both strings might be interpreted as numbers. Eg: $x="123456789012345678901234567890"; $y="123456789012345678900000000000"; echo ($x==$y)?"equal":"not_equal"; #Prints equal !! Both strings are getting converted to ......