Hi All,
If i am checking a session for a value, and it does not exist… It logically returns boolean FALSE.
The problem i have is how do i check this???
if i check with an isset() - it detects it as a true…
if i check for != FALSE it throws a PHP notice for undefined index…
the only logical way to check this is by check both isset() && != FALSE like below… but this seems like overkill for something that should be clean cut… can anyone advise?
$value = FALSE;
if (isset($value) && $value !== FALSE) { echo "true"; } else { echo "false"; }