Sr. PHP Programmer Question:
Download Questions PDF

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

Answer:

PHP provides a special function called __construct() to define a constructor. You can pass as many as arguments you like into the constructor function.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
What is Object-Oriented Methodology?How to find current date and time?