Re: variable_exists() patch

From: Date: Thu, 14 Aug 2003 18:28:06 +0000
Subject: Re: variable_exists() patch
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-3947@lists.php.net to get a copy of this message
On Thu, Aug 14, 2003 at 11:15:51AM -0700, walt boring wrote: > I for one would like to see something like variable_exists(), as I am > very annoyed with > the logic of isset() returning false if the variable exists and has a > value of null. [snip] > I for one would much rather do > if ( variable_exists($var) ) {} versus > if (isset($var) || is_null($var)) {} When do you need to do that? I can't think of many situations where it would be neccessary to check if a variable really exists. -- Regards, Stefan Walk <swalk@prp.physik.tu-darmstadt.de>

« previous php.internals (#3947) next »