top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which of the following method acts as a constructor function in a PHP class?

0 votes
1,198 views
Aclass_name()
B__construct
Cconstructor
Dnone of the above

Correct Option: 2  

Explanation:
PHP provides a special function called __construct() to define a constructor. You can pass as many as arguments you like into the constructor function.
posted Dec 5, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

...