The PHP language, like other languages, has a garbage collection mechanism.So what we're going to explain to you today is about the PHP garbage collection mechanism.I hope to help you.PHP strtotime PHP (memory_get_usage) application wise remark of an experienced person to manage the memory of PHP unset using unset PHP global variables detailedexplanation () function to destroy the variables to teach you quickly realize PHP authentication, a total of PHP garbage collection mechanism (Garbage Collector GC) in PHP, there is no variable pointing to this object, the object becomes garbage.PHP will destroy it in memory; this is the PHP's GC garbage disposal mechanism to prevent memory overflow.When an PHP thread ends, all of the memory space thaT是目前占据将被破坏,而在当前程序中所有的对象都是破坏simultaneously.gc过程通常遵循每个会话开始with.gc。其目的是在会话文件过时后自动销毁这些文件。二,__destruct /复原__destruct()析构函数执行垃圾回收时的对象。