The question is what happens to local variables when the code leaves a function/method
as far as memory is concerned.
Does it *silently* unset (free the allocated memory) the local variables, or does it make sense to hardcode
unset() to garbage these local variables?
Thanks


function foo()
{
   $bar = 'some large value';
   unset($bar);
}
---------
function foo()
{
   $bar = 'some large value';
}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to