From: kranthi on 15 May 2010 01:18 == operator type casts the string to integer before comparing so the comparison boils down to 0 == 0 which is true these rules also apply to the switch statement http://php.net/manual/en/language.operators.comparison.php but with === the typecasting does no occur
|
Pages: 1 Prev: PHP framework Next: Ruben Knol has invited you to open a Google mail account |