Guys I just came across the __call() PHP function. I tried to understand what this is used through the manual here http://php.net/manual/en/language.oop5.overloading.php#object.call But all that is mentioned here is that
__call() is triggered when invoking inaccessible methods in an object context.
which is not really clear honestly. I tried looking for other examples online, but they all seem complicated. Can anyone explain using a simple example what is __call() and what is it good for?
__callis executed when you try to invoke non-existent method in class. PHP page you provided has an example.