RE: [PHP] isset?

From: Date: Thu, 28 Feb 2002 06:16:33 +0000
Subject: RE: [PHP] isset?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86536@lists.php.net to get a copy of this message
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:taylorjo@collegesherbrooke.qc.ca] Sent: 28. helmikuuta 2002 7:34 To: php-general@lists.php.net 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

« previous php.general (#86536) next »