RE: [PHP] if($var) vs. if(isset($var))

From: Date: Tue, 23 Nov 2004 13:27:15 +0000
Subject: RE: [PHP] if($var) vs. if(isset($var))
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-202722@lists.php.net to get a copy of this message
$var = false; Then the first returns false While the second is true > -----Original Message----- > From: Sam Smith [mailto:php@itab.com] > Sent: dinsdag 23 november 2004 14:23 > To: PHP > Subject: [PHP] 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 > > >

« previous php.general (#202722) next »