Php5.0 officially released a number of new features not fully compatible with PhP4

Source: Internet
Author: User
Tags mysql functions

The long-awaited PhP5 was officially released on August 15, July 13. The release of PhP5 is a milestone for both PHP and PHP users. Various PHP versions prior to the release of PhP5 won the favor of many developers with simple syntax, rich library functions, and extremely fast script interpretation and execution speeds, almost became the preferred web development language on * nix platform. However, from the perspective of language itself, the syntax Design of PHP, especially Oo, is not perfect. Of course, this is related to the design purpose of the author of PHP.

As we all know, PHP was just a template system written in Perl at the beginning, and the subsequent development idea is to develop the web as quickly as possible.ProgramConvenience. A large number of library functions are added, while the development of language models is relatively slow. Although the object-oriented design is added to PhP4, its language model is not complete and lacks basic elements such as constructor, destructor, abstract class (Interface), and exception handling. This greatly limits the ability to use PHP to complete large-scale applications.

The birth of PhP5 fundamentally changed the above drawbacks of PHP. The Zend II engine is used to provide a complete object model and improved syntax design. PHP becomes a script language with complete design and real object-oriented capabilities. We expect that the appearance of PhP5 will give the entire PHPCommunityIt brings about a new round of peak for various database and application development improvements.

Php5.0 enhances the following features. First, fully implement object-oriented. In PhP4, the default value is "Deep copy". In PhP5, the default value is "Shallow copy. Therefore, PhP5 is not fully compatible with PhP4. However, it provides the function named PHP compatibility mode. The second is the XML function. php5.0 supports intuitive access to XML data and the XML processing interface named simplexml. In addition, XML Web Service Support is enhanced, and the standard supports the soap extension module.

For databases, the new version of PHP provides a new interface for accessing MySQL-mysqli. In addition to the previous interface, you can also use the object-oriented interface, prepared statement, and other new MySQL functions. In addition, php5.0 is bound with a small capacity RDBMS-SQLite.

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.