Jump to content

Remove Array from Memory?


todayme

Recommended Posts

When your script finishes, all memory used by it will be freed.  So for most scripts, you will not need unset()

 

Also, variables created and used inside a function will be freed at the end of the function (unless you have made them accessible outside the function, by returning them or putting them in a global variable)

 

Usually I only consider unset() if my script actually does run out of memory.

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.