PHP GENERAL 7 RE HAVING PROBLEMS WITH AN IF STATEMENT JUST DOESN T MAKE SENSE
Date: Mon, 7 Jul 2003 16:22:18 +0400

Subject: Re: Having problems with an IF statement, just doesn't make sense
From: nadim@no-spam (Nadim Attari)

Paying attention to this line:
> Also if I use !isset it returns true with a null value for $theme
Well this is clear in the manual:
isset() will return FALSE if testing a variable that has been set to NULL So !isset($a_Null) = !FALSE = TRUE
From PHP Manual =============
$var = 0;

if (empty($var)) { // evaluates true echo '$var is either 0 or not set at all';
}

if (!isset($var)) { // evaluates false echo '$var is not set at all';
}

Read manual: empty() and isset()