Re: Clearing all variables

From: Date: Fri, 13 Oct 2000 21:29:04 +0000
Subject: Re: Clearing all variables
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3603@lists.php.net to get a copy of this message
Todd Cary wrote: > > Is there a command to clear all PHP variables? > > Todd > I'm not sure that there's any good reason to have such a command. If you really wanted to, I'm sure you could play with the $GLOBALS array to accomplish what you need, ie, unsetting large numbers of variables. In fact, I've yet to hear of a programming language or scripting language where there was such a command. PHP releases all resources after it has executed AFAIK, if that's what you're worried about. -- O.

« previous php.db (#3603) next »