Answer
PHP uses reference counting and a cyclic garbage collector to free memory. It detects circular references and prevents memory leaks.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ