Method overloading (a feature of object-oriented programing which allows having several class methods with the same name but different signatures) is not implemented in PHP, which is a drawback compared to Java.
However, PHP 5 provides a way to imitate overloading by catching calls to "inaccessible methods" with magic method __call.
Add your comment