Re: Remove vars from memory?

From: Date: Fri, 05 Sep 2003 17:16:56 +0000
Subject: Re: Remove vars from memory?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161789@lists.php.net to get a copy of this message
On Fri, 2003-09-05 at 09:38, [cz]Emo wrote: > Hi all. > Will PHP remove variables from memory when script will NOT use them in rest > of code? > for example: > > <?php > $tmp=true; > if ($tmp) // here is $tmp used last time, will it be removed from memory? > ... > ... // $tmp is NOT in the rest of code > ... > ... > ?> > > or I must use allways unset()? > yes, you must use unset() to remove a variable, otherwise it will stay for the duration of the script. > Thanx > > Emo -- Tyler Lane <tlane@lyrical.net> Lyrical Communications

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.general (#161789) next »