Page 1 of 1

unset()

Posted: Tue Apr 11, 2006 6:24 am
by s.dot
The php documentation is scarce on how this works on arrays.

Does unset($array) clear the entire array from memory?

or should i use $array = array(); to unset it?

Also what about multidemensional arrays? unset($array['subarray']);

Posted: Tue Apr 11, 2006 7:17 am
by feyd
It frees it for php to continue using. It does not free it for the computer to use.