Re: distinguish between null variable and unset variable
| From: | Daniel Brown | Date: | Thu, 22 Jan 2009 20:14:10 +0000 |
| Subject: | Re: distinguish between null variable and unset variable | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287030@lists.php.net to get a copy of this message | ||
On Thu, Jan 22, 2009 at 15:12, Daniel Brown <danbrown@php.net> wrote:
>
> Unfortunately, neither solution would work. isset() will return
> FALSE even for an instantiated and explicitly-defined NULL variable.
Forgot to mention that, in addition, is_null() will return TRUE
for both explicitly-set NULL variables and undefined variables alike.
--
</Daniel P. Brown>
daniel.brown@parasane.net || danbrown@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!