DevShed has started up yet another PHP-related series today with this new tutorial covering part of PHP5's object functionality - destructors.
This article, the first part of a five-part series, introduces you to destructors and their use with PHP 5 programs. [...] The word "destructor" relates to certain methods or functions of a determined programming language that are responsible for destroying data that, in the context of that particular language, shouldn't exist any longer.
They create a sample class (for storing user information) and show how to integrate a destructor to remove all traces of the user's information from the properties of the class.