top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

0 votes
36 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

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...