Loading…

What are magic methods?

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()

Suggest An Answer

No suggestions avaliable!

Latest post from PHP interview questions

Ask Question