You are here: Re: [PHP] Re: Comparison Operator « PHP « IT news, forums, messages
Re: [PHP] Re: Comparison Operator

Posted by John Nichel on 10/04/68 11:05

tg-php@gryffyndevelopment.com 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@kegworks.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация