Re: Comparison Oddity

From: Date: Thu, 30 Nov 2000 11:24:37 +0000
Subject: Re: Comparison Oddity
Groups: php.general 
Request: Send a blank email to php-general+get-28014@lists.php.net to get a copy of this message
At 02:59 30-11-00 -0800, Paul Mullen wrote:
Given the two following expressions: A) ( $column == "date" ) B) ( $column === "date" ) When $column is set to '0' (integer zero), why would expression A evaluate to true, It shoulded
Are you sure that you did two =? and not one =? $a = "blaat" is always true
and B evaluate to false?
B is to test this differnce: $a = false $b = 0; $a == $b (true) $a === $b (false) Greetz, Wico
Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.general (#28014) next »