Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

PHP recognizes constructors by the name.

a) classname()
b) _construct()
c) function_construct()
d) function__construct()

Answer: d
Explanation: A double underscore followed by the construct keyword. Its syntax is function__construct ([ argument1, argument2,…..]) { Class Initialization code }

Join The Discussion