1.

A function in PHP which starts with __ (double underscore) is known as __________(a) Magic Function(b) Inbuilt Function(c) Default Function(d) User Defined FunctionI have been asked this question by my school teacher while I was bunking the class.I'm obligated to ask this question of Functions in portion Arrays and Functions of PHP

Answer» RIGHT OPTION is (a) Magic Function

The best 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.


Discussion

No Comment Found

Related InterviewSolutions