I've discovered the hard way that the comparison;
$val == "anystring"
IS ALWAYS TRUE in PHP4 if $val is the number 0 but false if $val is the string "0". I've looked through the PHP manual (type juggling and such) but I can't find why this happens. Does anyone have the details?
Of course I can easily get around this by using the "===" comparison operator or "strcmp".
Thanks,
Kent