RES: [PHP-GTK] PHP4 Object Issues.
| From: | Piero B. Contezini | Date: | Tue, 02 Aug 2005 21:04:15 +0000 |
| Subject: | RES: [PHP-GTK] PHP4 Object Issues. | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6124@lists.php.net to get a copy of this message | ||
If it is a global variable, i think this must assign the right content,
but it is inside a object, thats why i can't use the $GLOBALS array.
Piero.
-----Mensagem original-----
De: Brian Stumm [mailto:bstumm@energytechnologysystems.com]
Enviada em: terça-feira, 2 de agosto de 2005 18:16
Para: Piero B. Contezini
Assunto: Re: [PHP-GTK] PHP4 Object Issues.
Perhaps this is your problem....
If you would like to unset() a global variable inside of a function,
you
can use the $GLOBALS array to do so:
<?php
function foo()
{
unset($GLOBALS['bar']);
}
$bar = "something";
foo();
?>
See http://php.net/unset
"Piero B. Contezini" wrote:
> Know it seems to be really a PHP bug,
> --
Brian Stumm
ETS - Energy Technology Systems, Inc
bstumm@energytechnologysystems.com
http://energytechnologysystems.com