Deleting an object : unset « Data Type « PHP






Deleting an object

 
class car {
    function __destruct() {
        // head to car dealer
    }
}

$car = new car; 

unset($car);
  
  








Related examples in the same category

1.Removing Session Data
2.void unset ( mixed var [, mixed var [, mixed ...]] )
3.Using the unset() Function
4.Removing Elements
5.Removing Elements from Arrays