Re: [PHP] Re: Memory investigation
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
function check_memory_usage(&$memory)
{
$memory[] = memory_get_usage();
return $memory;
}
something like this?
you can put it wherever you like and returns an array for further
processing. You could optionally add a second argument to set the index
to a name and check if the name exists to add 1 to the end of the name
so your indexes stay maintained.