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.

A function in PHP which starts with __ (double underscore) is known as.

a) Magic Function
b) Inbuilt Function
c) Default Function
d) User Defined Function

Answer: a
Explanation: PHP functions that start with a double underscore – a “__” – are called magic functions in PHP. They are functions that are always defined inside classes, and are not stand-alone functions.

Join The Discussion