[PHP] difference between $foo and isset($foo)

2002-04-18 Thread Norman Zhang
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

Re: [PHP] difference between $foo and isset($foo)

2002-04-18 Thread Miguel Cruz
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