note 8349 modified in unset by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Thu, 07 Sep 2000 13:58:01 +0000 |
| Subject: | note 8349 modified in unset by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4318@lists.php.net to get a copy of this message | ||
[Editor's note: merge both annotations]
Beware! If you are in a function and the variable is a global you are accessing using
'global', then unset does not work. It simply un-globalises the variable, instead of
unsetting the global. This changed between PHP3 and PHP4.
It appears that unset($GLOBALS['foo']) might be the right way to go now.
http://www.php.net/manual/function.unset.php