Gerry Danen wrote:
On 1/11/06, M. Sokolewicz <[EMAIL PROTECTED]> 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

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

Reply via email to