The long-awaited PHP5 was finally released on July 13, local time. The PHP5 release is a milestone version for both the PHP language itself and the PHP user. The PHP versions prior to the release of PHP5, with simple syntax, rich library functions, and extremely fast script interpretation, have earned the favor of many developers, almost the preferred web development language on the *nix platform. However, in terms of language itself, PHP syntax, especially OO syntax design is not perfect, of course, the author of the PHP language began with the design purposes.
As we all know, PHP is the first in a Perl-written template system, and then the development of ideas as far as possible for the rapid development of web programs to facilitate. A large number of library functions are added, while the development of language models is relatively slow. Although the object-oriented design is included in PHP4, its language model is not perfect and lacks such basic elements as constructors, destructors, abstract classes (interfaces) and exception handling. This greatly limits the ability to use PHP to complete large-scale applications.
And the birth of PHP5, it fundamentally changed the above drawbacks of PHP. Zend II engine Adoption, complete object model, improved grammar design. Eventually makes PHP a well-designed scripting language with real object-oriented capabilities. We anticipate that the advent of PHP5 will bring a new round of library and application development improvements to the entire PHP community.
The PHP5.0 version reinforces the following features. First, fully implement object-oriented. An object with a deep copy as its default in the PHP4 version is replaced with a shallow copy as the default value in PHP5. Therefore, PHP5 is not fully compatible with PHP4, however, it provides functionality called PHP compatibility mode. followed by the XML feature, the PHP5.0 version supports intuitive access to XML data, and an XML processing interface called SimpleXML. It also reinforces XML Web service support, and the standard supports SOAP extension modules.
On the database side, the new PHP version provides a new interface--mysqli designed to access MySQL. In addition to the previous interface, new MySQL features such as the object-oriented interface and preprocessing statements (Prepared Statement) can be used. In addition, the PHP5.0 is also bundled with small capacity rdbms--sqlite.
http://www.bkjia.com/PHPjc/314432.html www.bkjia.com true http://www.bkjia.com/PHPjc/314432.html techarticle the long-awaited PHP5 was finally released on July 13, local time. The PHP5 release is a milestone version for both the PHP language itself and the PHP user. In the P ...