isset checks to see if the $a variable has been set, ie, if it exists.
if($a) checks for the truthood of $a, meaning, if it has a non-zero,
non-null/empty-string value, then its true, else, false.

jack

-----Original Message-----
From: David Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 14, 2001 6:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] if(isset($a)) vs if($a)


Hi.  What is the difference between:

if(isset($a))

and

if($a)

???  Thanks.

David


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to