Re: [PHP] isset() VS if($var)

2001-04-09 Thread Jesper Blomström
This cleared up the difficulties! I will look deep into the archive, now and forever. Thanks from Stockholm, Sweden. / Jeppe "PHPBeginner.com" wrote: > > It is really a long discussion (check the archives of the last month - two) > > Basically, isset() will tell you if the variable is dec

RE: [PHP] isset() VS if($var)

2001-04-09 Thread PHPBeginner.com
It is really a long discussion (check the archives of the last month - two) Basically, isset() will tell you if the variable is declared, in other words it is set. It can still be empty but declared, and that will return you true; if($var) will return false only if 1. variable is not de

Re: [PHP] isset() VS if($var)

2001-04-09 Thread Adam Wright
isset actually sees if the variable exists, and has been assigned a value (where if is obviously checking for boolean truthfulness). Thus... $a = 0; if (isSet($a)) print "A is set"; //This line will execute if (isSet($b)) print "B is set"; //This line never will, as B has not been set to an