PHP uses reference counting and copy on write to manage menory. Copy-on-write ensure that memory isn't wasted when you copy values between variables, and reference counting ensure that memory is returned to the operating system when it is no longer needed.
To understand memory management in PHP, you must first understand the idea of a sysmbol table. there are two parts to a variable- its name ($name), and its value ("Fred").
To understand memory management in PHP, you must first understand the idea of a sysmbol table. there are two parts to a variable- its name ($name), and its value ("Fred").
2 comments:
This is quite helpful. It is really a need to understand well memory management in php in order to save space and avoid future issues.
yes. memory management is must for performance.
Post a Comment