Defining an object destructor : Destructors « Class « PHP






Defining an object destructor

 
class car {
    function __destruct() {
    }
}
  
  








Related examples in the same category

1.destuctor in action
2.Class destructors
3.Accessing instance-specific data within a destructor
4.Class with destructors
5.Cleaning Up with the __destruct Method (PHP 5 Only)
6.Declaring and Using Object Constructors and Destructors