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
On Thu, 18 Apr 2002, Norman Zhang wrote:
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
2 matches
Mail list logo