What are constructor and destructor in PHP?

Constructor is used to initializing the instance of a class automatically when the object is created.

Destructor is used to de-initialize objects already existing to free up memory for new accommodation.

22-August 9:36 PM 477 Views

 Prev question

Next question