The only reason I can see for explicitly destoying a PHP object is to free up resources during a longer-running script. Otherwise, the end of script execution will handle the problem for you.
In those situations where I need to explicitly get rid of a variable, I use unset() (
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.