Re: Detecting if a null variable exists?

From: Date: Mon, 14 Jun 2010 06:46:29 +0000
Subject: Re: Detecting if a null variable exists?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-48764@lists.php.net to get a copy of this message
On 06/11/2010 07:43 PM, Brian Moon wrote:
Is it just me or are we missing a way in the language to check if a variable that has been set to NULL exists or not? ... perhaps an var_exists() function is needed to fill this hole?
php -r 'function f(){$f=null; var_dump(array_key_exists("f", get_defined_vars()));} f();' Mike

« previous php.internals (#48764) next »