> Hi everybody,
>
> Is there any requirement to free variables in php, or is there any
> garbage collection or built-in module that terminates unused variables?
> (Especially for arrays and class instances)...

Garbage collection is automatic in PHP.  When you do:

$a = 123;
$a = 456;

Then the memory for 123 is returned to the system as soon as you re-assign
$a.  You can also return it by doing unset($a);

-Rasmus


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

Reply via email to