The PHP language from the birth, has the very good process-oriented programming characteristic. Only in its evolutionary process has gradually strengthened the object-oriented characteristics, until the PHP5.0, it is close to perfection. In general, PHP beginners and programmers from ASP to PHP developers are more inclined to process-oriented programming, because textbooks and a large number of reference books are taught.
But with the development of PHP language and the progress of programming technology, even the PHP developers, should also evolve to object-oriented programming! Because with the PHP version of the upgrade, PHP is also looking to the enterprise development market development, future programming will become increasingly complex. Furthermore, object-oriented is a good solution to solve the current large number of repetitive development and low code quality problems. such as the current popular PEAR, Smarty, phplib, such as PHP light function library, are using OOP method to achieve. And the Zend framework, such as object-oriented application-level programming framework, are the model of object-oriented programming, in the framework of programming, full adoption of object-oriented programming style.
Therefore, whether it is to consider the PHP itself and its development, or consider the programmer's programming thinking training, and career development, object-oriented programming is a general direction. Especially for the current state of PHP programming, I particularly recommend that you stand on the side of object-oriented, object-oriented programming is the way forward.
Zhang Qing (mesh)
Mesh Horizon: http://blog.why100000.com
2008-3-28
<