What is magic methods and what are those?
Member functions are nothing but magic methods, magic methods are available to all the instances of a class or all the objects. Magic methods always start with ‘__’. To use a method, it should be defined within the class or the program scope.
for example, __construct().
All magic methods need to be declared as public.