On Thu, Jan 22, 2009 at 15:11, Shawn McKenzie <[email protected]> wrote:
>
> Or something like this (dunno, just brainstorming):
>
> function setornull(&$var)
> {
> if (!isset($var)) {
> return false;
> }
> elseif (is_null($var)) {
> return null;
> }
> return true;
> }
Unfortunately, neither solution would work. isset() will return
FALSE even for an instantiated and explicitly-defined NULL variable.
--
</Daniel P. Brown>
[email protected] || [email protected]
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php