Magic Methods in PHP:
In PHP there are so many methods are included in recent versions, magic methods are one of them. The magic methods are listed below:
In the above list of the magic methods it is very easy to identify that every magical method name is started with " __ " sign. We can not declare any user-defined functions with __ sign, and we can not use the magic methods name in any user-defined functions.
The following links will describe magic methods:
PHP Constructor and Destructor
Recommend the tutorial