yeah its strange, $test is equal to $test2, $test is equal to $test3 but $test2 is not equal to $test3,
$test = "string"; $test2 = true; $test3 = 0; if($test == $test2){ echo "hi"; } somone tell me im wrong please? else thats seriously weird -- Luke <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i've never had a problem doing if ($var=="test") ?? > > > I've come across this recently too. I think what's happening is that > > PHP is converting "NFH" to an integer, which would be zero in this > > case. Thus zero == zero is true... > > > > Try doing type checking too: > > if ($EA === "NFH") > > > > Martin > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php