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
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
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
3 matches
Mail list logo