Hi,
I am getting problem of Allowed memory size is exhausted.
for this i used unset function to free up the memory. but still problem is same.
How i can track which variable usages more memory in my script
i used memory_get_usage() , but its shows all memory usages of script
Thanks
Re: php variable memory
Yash,
You can call memory_get_usage() several times on different stages of your script and this will get you several values. Select two consequent numbers with the biggest difference between them and check what happens between these two calls. Repeats the same for this region. After several iterations you will find the place in your code which cause memory overwhelming.
Regards,
Alex