If $submit is 0/NULL/FALSE and you do "if ($submit)" you'll receive
FALSE.
With "if (isset($submit))" you'll receive TRUE.

In other words, isset() checks if variable is set at all and is() checks
if the expression is true.


Niklas



-----Original Message-----
From: jtjohnston [mailto:[EMAIL PROTECTED]] 
Sent: 28. helmikuuta 2002 7:34
To: [EMAIL PROTECTED]
Subject: [PHP] isset?


So what is the good of isset? What does if(isset($submit)) do
differently than if($submit) ??

J


-- 
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

Reply via email to