Reply to Re: [PHP] test variable value?

Your name:

Reply:


Posted by "M. Sokolewicz" on 01/11/06 23:45

Gerry Danen wrote:
> On 1/11/06, M. Sokolewicz <tularis@php.net> wrote:
>
>>remember though that
>>if(!$x) {
>> echo 'nothing here';
>>}
>>
>>will also output 'nothing here' when provided with the string '0'!
>
>
>
> That's because (!$x) means ($x == false) and '0' is false...
>
> Gerry
>
I know that, and you know that, as do others who have encountered
problems with this before; just wanted to make a small warning so the OP
wouldn't get hit by this

- tul

[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

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