Re: variable_exists() patch
| From: | Cristiano Duarte | Date: | Sun, 17 Aug 2003 15:38:42 +0000 |
| Subject: | Re: variable_exists() patch | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4050@lists.php.net to get a copy of this message | ||
"Robert Cummings" <robert@wocmud.org> escreveu na mensagem
news:1061086142.17849.12.camel@blobule.suds...
> On Sat, 2003-08-16 at 18:28, Robert Cummings wrote:
> It is true that I could set the value to -1 or some such other hack, or
> that I could use array_keys() and then check the values of the resulting
> array, but these are hacks for a perfectly valid use of the value null
> and in inadequate isset() function.
I agree. If we can have one function to check this, it would be better than
writing PHP hacks. Any language that don't enforce variable declaration,
should have a well defined way to check whether a variable exists or not.
And we are talking about the variable, not the value it stores. :)
Cristiano Duarte