Destructor
A destructor is a special method named __destruct(). It runs automatically when an object is destroyed or when the script finishes execution.
If a constructor is about birth, a destructor is about cleanup at the end of the object's lifecycle.
It does not receive arguments. It is triggered automatically by PHP when the object is no longer needed.
In simple examples, it may echo something. In real systems, destructors are more commonly used for cleanup responsibilities, such as closing connections or releasing resources.
The important shift here is lifecycle awareness. Objects are not only created and used. They also have an end.