Re: what's the diff between if($var1) and if(isset($var1)) and if(!empty($var1))???

From: Date: Tue, 22 May 2001 07:30:36 +0000
Subject: Re: what's the diff between if($var1) and if(isset($var1)) and if(!empty($var1))???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-53859@lists.php.net to get a copy of this message
if($var1) is true if $var1 is set and has a non-0 and non-false value if(isset($var1)) is true if $var1 is set to any value including 0 or false if(!empty($var1)) is true if $var1 is set to anything except a null-string

« previous php.general (#53859) next »