PHP5.0 official release not fully compatible PHP4 new multi-function _php Tutorials

Source: Internet
Author: User
Tags php language local time
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.