Re: Re: Comparison Operator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tg-php@xxxxxxxxxxxxxxxxxxxxxx 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 the if statement might still evaluate to true if it came out to be if (FALSE == FALSE), right? FALSE == FALSE equates to TRUE, yes?

Right, since both sides of the comparison evaluated to 0 (false), the comparison itself is true.


--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@xxxxxxxxxxxx

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux