[PHP] unsetting global variables from an function

2002-02-27 Thread Enrico Weigelt
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==

Re: [PHP] unsetting global variables from an function

2002-02-27 Thread Andrey Hristov
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