Comment Comment by hiddenbayes This behavior is documented here: http://php.net/manual/en/language.operators.comparison.php 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. parent hiddenbayes 14 years ago