Re: [PHP] Re: Comparison Operator

2005-01-10 Thread John Nichel
[EMAIL PROTECTED] wrote: Yeah, I stated that it was being converted to an integer, but what I didn't think about was that 'A' didn't contain any integers so it would end up being zero. I believe if it had been 'A23' then it would have been converted to 23. But if it had evaluated to false than t

Re: [PHP] Re: Comparison Operator

2005-01-10 Thread John Nichel
Jason Morehouse wrote: Russell Chadwick wrote: Could anyone tell me why this code echos? $value = 0; $curval = 'A'; if ($value == $curval) { echo "WTH, Over"; } ?> $value = 0 means false. And your comparison is false. Try: If the comparison is false, the echo shouldn't be executed. Th