Try unset($GLOBALS[var]);
Best regards,
Andrey Hristov
- Original Message -
From: Enrico Weigelt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]cellphone: +49 174 7066481
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php