$var = false; Then the first returns false While the second is true > -----Original Message----- > From: Sam Smith [mailto:php@xxxxxxxx] > Sent: dinsdag 23 november 2004 14:23 > To: PHP > Subject: if($var) vs. if(isset($var)) > > > > What's the difference between: > > if($var) > > and > > if(isset($var)) > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php