Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

How will you add a destructor function to a PHP class?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

Like a constructor function you can define a destructor function using function __destruct(). You can release all the resources with-in a destructor.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
What is the use of explode() function?What is mean by an associative array?