Re: Re: PHP 4.0 Bug #5289 Updated: Use of reset on a global array creates

From: Date: Fri, 30 Jun 2000 14:21:08 +0000
Subject: Re: Re: PHP 4.0 Bug #5289 Updated: Use of reset on a global array creates
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-23043@lists.php.net to get a copy of this message
AF>> Can anyone tell me if there's any memory penalty in doing this instead AF>> of using unset()? No. Not that you should care of, unless you have thousands of them. AF>> So, as I now understand it: AF>> unset($var) means "destroy this variable, as if it were never used" yes. AF>> when declared as global inside a function further references inside a AF>> function will refer to a local variable, not a global one. yes. as if you never defined this variable. AF>> function. unset() isn't really a function, more a parser control AF>> element, like include(). Exactly. unset is not a function in PHP 4. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#23043) next »