Sr. PHP Programmer Question:
Download Job Interview Questions and Answers 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 Question | Next Question |
What is Object-Oriented Methodology? | How to find current date and time? |