Jump to content

How important is using unset() ?


magnetica

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/209162-how-important-is-using-unset/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.