Someone help me understand magic methods in an easier way.
I know that magic methods are triggered at some point of a code, what I don't understand is point at which they are triggered. Like, in case of __construct(), they are triggered at point of creation of an object of the class and the parameters to be passed are optional.
PLease tell me when __get()
, __set()
, __isset()
, __unset()
are triggered in particular. It would be much helpful if stated about any other magic methods.