Re: empty and isset
| From: | Jason Wong | Date: | Thu, 06 Feb 2003 18:39:42 +0000 |
| Subject: | Re: empty and isset | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134656@lists.php.net to get a copy of this message | ||
On Friday 07 February 2003 01:35, Mike.Kent@indystar.com wrote:
> Thanks for clearing that up.
Hmm, it seems like you still haven't grasped it yet :)
> So input of type text does a set, which makes
> isset() true,
Correct.
> but isset() does not return true if $var is merely empty.
Incorrect. Basically empty($var) returns TRUE if $var evaluates to FALSE, and
in this context if $var is undefined it evaluates to FALSE. isset($var)
returns TRUE if $var has been defined & is a non-NULL value, and returns
FALSE if $var is undefined or is set to NULL.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Conquering Russia should be done steppe by steppe.
*/