magnetica Posted July 28, 2010 Share Posted July 28, 2010 Hi All I was wondering how important it is to unset() all your variables once used? Most of my code is object oriented so the functions discard any variables created within them. But do I have to unset() all the objects that I instantiate? Also how much will it improve on speed if I do so? Regards, Magnetica Quote Link to comment Share on other sites More sharing options...
trq Posted July 29, 2010 Share Posted July 29, 2010 PHP has a perfectly good garbage collection mechanism, so unset() really isn't required. Quote Link to comment Share on other sites More sharing options...
joel24 Posted July 29, 2010 Share Posted July 29, 2010 PHP has a perfectly good garbage collection mechanism, so unset() really isn't required. Thorpe, just noticed your post count! Posts: 23,276 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.