Hi,

I am looking at some codes. Some authors use $foo and isset($foo)
interchangeably. Just to want to make sure that the statement,

if ($foo) { ... }

is different from

if (isset($foo)) { ... }

Right? if ($foo) means variable exists and can be null. Whereas, isset($foo)
means that the value in $foo cannot be null?

Regards,
Norman



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

Reply via email to