Does calling unset() free the memory that was associated with that object? There are a couple cases where I find myself handling large associative arrays and I would like to remove them when done (freeing up memory to create new ones).
Does calling unset() free the memory that was associated with that object? There are
Share
Yes it does.
Check for yourself using
memory_get_usage():More Resources:
Quoting from later link: