Support for late binding has been implemented in the latest release version of PHP. Of course, there are still many problems when using its late binding function. If you are using an older version of PHP (my server is running PHP 5.0.1), then you may find that support for late binding is lacking. Therefore, please note that the code in this article may not work in your specific version of PHP 5.
1. PHP 5 and Polymorphism
This article would like to discuss one of the most important parts of object-oriented programming - the design of polymorphism. To illustrate the problem, I'm using PHP 5. Before you continue reading, please make it clear that this article is not entirely about PHP. Although the language has made great strides in rapid development over the past two major versions, it is still incompatible with more mature languages such as C++ or