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
Article Tags :
Recommended Articles