Reply to Re: possible bug (string equality to zero)?

Your name:

Reply:


Posted by "Christopher J. Bottaro" on 08/11/05 20:10

Scott Noyes wrote:

>> [snip]
>> Is it a bug that ($var == 0) is always true for any string $var?
>> [/snip]
>>
>> You are comparing a string to an integer.
>
> Right. This is clearly documented at
> http://www.php.net/operators.comparison
>

Oh, I see...it converts the string into number, not the other way around.
Thanks for the link.

[Back to original 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

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