Re: wrong implementation of isset()?
| From: | Andrei Zmievski | Date: | Tue, 06 Feb 2001 19:43:29 +0000 |
| Subject: | Re: wrong implementation of isset()? | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-45864@lists.php.net to get a copy of this message | ||
On Tue, 06 Feb 2001, Bjoern Hoehrmann wrote:
> >NULL == not set
>
> Great analysis. What about answering the question? Stanislav Malyshev
> said some months ago this is 'strange', see the discussion around bug
> 6076. Tell us at least, why this actually isn't strange.
By default, any unset variable has value NULL - and isset(NULL) returns
false to indicate that. Similarly, assigning NULL to a variable unsets
it.
-Andrei
* The great thing about standards is that there are so many to choose from. *