note 26446 rejected from ref.array by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Thu, 31 Oct 2002 04:02:33 +0000 |
| Subject: | note 26446 rejected from ref.array by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38809@lists.php.net to get a copy of this message | ||
It's not clear how memory is managed with arrays. For example, if you have some existing data
in an array and do:
$my_array=array();
Does it wipe all previous content? It should. Also, if you do
$my_array[0] = "";
It should release the memory for whatever stuff was there before.
If arrays are kept as linked lists as somebody here pointed out before, there is a significant
overhead on arrays with hundreds of elements. Is there anywhere I can find info on the way this
stuff is managed without browsing through the PHP source code?