Re: unsetting global variables from an function
| From: | Andrey Hristov | Date: | Thu, 28 Feb 2002 07:48:40 +0000 |
| Subject: | Re: unsetting global variables from an function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86548@lists.php.net to get a copy of this message | ||
Try unset($GLOBALS["var"]);
Best regards,
Andrey Hristov
----- Original Message -----
From: "Enrico Weigelt" <weigelt@metux.de>
To: <php-general@lists.php.net>
Sent: Thursday, February 28, 2002 9:44 AM
Subject: [PHP] unsetting global variables from an function
>
> hi folks,
>
> is there a way for unsetting an global variable from an function ?
>
> global $var; unset ( $var );
>
> does not work since, unset only removes the reference in from
> local namespace. but i need to remove it from the global one.
>
> any chance to do it ?
>
> ~-n
>
> --
> Enrico Weigelt == meTUX IT services
> software development, IT service, internet security solutions
> www: http://www.metux.de/ phone: +49 36207
> 519931
> email: contact@metux.de cellphone: +49 174 7066481
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>