PHP OOP Destructor.

A Destructor is a function used for deleting the object instance that was created by a constructor for a given class, as a part of its functional feature.

Code :