Answers

Question and Answer:

  Home  Senior PHP Programmer

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

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

 179 views

More Questions for you: