PHP has a combination of garbage collection and reference counting. The latter is the main way to manage memory, while the garbage collector collects pieces that the reference count (circular links) skips. Prior to 5.3, php only had ref-counting, and even in 5.3 it still saves memory.
troelskn Nov 14 '09 at 22:49 2009-11-14 22:49
source share