Re: wrong implementation of isset()?
| From: | Andrei Zmievski | Date: | Tue, 06 Feb 2001 17:52:48 +0000 |
| Subject: | Re: wrong implementation of isset()? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-45859@lists.php.net to get a copy of this message | ||
On Tue, 06 Feb 2001, Martin Jansen wrote:
> The following was reported today in the german language newsgroup
> news:de.comp.lang.php:
>
> <?php
> $a = NULL;
> if (isset($a)) { print "ok, du hast recht"; }
> ?>
>
> Shouldn't this script generate some output? IMO $a is set
> and isset() should return true.
>
> The manual says:
> "isset -- Determine whether a variable is set"
>
> So following the manual means that there _has_ to be
> output because $a is set in fact.
>
> Or am I wrong?
NULL == not set
-Andrei
Some people try to achieve immortality through their work, others
through their children. I hope to achieve immortality by not dying.
-- Woody Allen