Erm... this seems a bit odd to me.  I'm using PHPv4.2.2 on Win32

Is that becuase PHP is not properly comparing the numerical value with
the string value?

<?
$no = 0;
if ($no == "string") {
 print "this eval's to TRUE... since when is '0' == 'no' ?";
}
if ("$no" == "string") {
 print "whereas this eval's to FALSE, as you'd expect";
}
?>



--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to