Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

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

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

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?