Keywords / Scripting languages, Destructor

Tags: Scripting languages, Destructor

Classes and objects in PHP: destructors

Classes and objects in PHP: destructors
PHP does not directly support destructors. However, you can easily simulate a destructor by calling the PHP function unset.