Magic methods are unique names, starts with two underscores, which denote means which will be triggered in response to particular PHP events.

The magic methods available in PHP are given below:-
  • __construct()
  • __destruct()
  • __call()
  • __get()
  • __unset()
  • __autoload()
  • __set()
  • __isset()

Note: One of the most tricky oops interview questions in php, you need to answer this question with utmost clarity. Maybe explaining it with a short example or even a dry run would help you get that dream job.

Suggest An Answer

No suggestions Available!