Skip to content
Related Articles

Related Articles

Improve Article

Web technologies Questions | PHP Quiz | Set 1 | Question 15

  • Last Updated : 20 Sep, 2021
Geek Week

How do we call the constructor function in the PHP class?
(A) class_name()
(B) __construct
(C) constructor
(D) None of the above.


Answer: (B)

Explanation: The __construct() function is an inbuilt function in PHP which is used to create a new DOMEntityReference object for calling the constructor function in Php class is __construct is used.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :