What is the role of PHP’s garbage collection mechanism?

Mid PHP

Answer

PHP uses reference counting and a cyclic garbage collector to free memory. It detects circular references and prevents memory leaks.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice