Re[2]: [PHP] if(isset($a)) vs if($a)

From: Date: Sat, 15 Sep 2001 06:00:00 +0000
Subject: Re[2]: [PHP] if(isset($a)) vs if($a)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67428@lists.php.net to get a copy of this message
JD> isset checks to see if the $a variable has JD> been set, ie, if it exists. if($a) checks for JD> the truthood of $a, meaning, if it has a JD> non-zero, non-null/empty-string value, then JD> its true, else, false. ... and if it's not set at all it returns a warning unless you use "@" :( -- Andrew Perevodchik ok@naverex.kiev.ua

« previous php.general (#67428) next »