June 2017
Intermediate to advanced
536 pages
9h 49m
English
Overloading is a familiar term in OOP. However, not all programming languages interpret it in the same way. The PHP notion of overloading is quite different than that of other OO languages. Where traditionally overloading provides the ability to have multiple methods with the same name but different arguments, in PHP overloading means to dynamically create methods and properties.
There are two magic methods in PHP supporting method overloading: __call() and __callStatic(). Throughout this section, we will take a closer look at the __call() method. ...
Read now
Unlock full access