Question discussion

A function in PHP which starts with ______ (double underscore) is know as.

317699Medium 1 reply 1,124 views
0
A function in PHP which starts with ______ (double underscore) is know as.
  • AMagic Function
  • BInbuilt Function
  • CDefault Function
  • DUser Defined Function
Correct answer: A

Discussion 1

0
CCommunity
Magic Function

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.