variable scope -- unsetting vars inside functions

From: Date: Thu, 01 Mar 2001 09:05:11 +0000
Subject: variable scope -- unsetting vars inside functions
Groups: php.general 
Request: Send a blank email to php-general+get-42136@lists.php.net to get a copy of this message
When a function finishes execution does it automatically clean up its local variables or should I manually unset() them? For example: function do_something() { $local_var = 'something really big...'; return true; } Does $local_var immediately vanish from existence when do_something finishes executing? Thanks! -- Michael A. Smith <msmith@wcities.com> Director of Data Systems, wcities.com ICQ: 35884415 :wq

« previous php.general (#42136) next »