PHP5.0 officially released a number of new features not fully compatible with PHP4

Source: Internet
Author: User
The long-awaited php (as the mainstream development language) 5 was officially released on August 5, July 13. For php (as the current mainstream development language) and php (as the current mainstream development language) users, php (as the current mainstream development language) 5 release is regarded as a milestone version of SyntaxHighlighter.

The long-awaited php (as the mainstream development language) 5 was officially released on August 5, July 13. For php (as the current mainstream development language) and php (as the current mainstream development language) users, php (as the current mainstream development language) 5 release is a milestone version. Various php versions before php (as the mainstream development language) 5 is released (as the mainstream development language) the version won the favor of many developers with simple syntax, rich library functions, and extremely fast script interpretation and execution speed, almost became the preferred web development language on * NIX platform (which occupies a large proportion in current program development. However, from the perspective of language itself, the syntax of php (as the mainstream development language), especially the syntax design of OO, is not perfect. of course, this and php (as the mainstream development language) the first design goal of the language author is related.

As we all know, php (as the mainstream development language) is just a template system written in Perl at the beginning, and its subsequent development ideas are as convenient as possible to develop WEB programs quickly. A large number of library functions are added, while the development of language models is relatively slow. Although the object-oriented design has been added to php (as the mainstream development language) 4, its language model is not complete and lacks such features as constructor, destructor, and abstract class (interface) and exception handling. This greatly limits the ability to use php (as the mainstream development language) to complete large-scale applications.

Php (as the mainstream development language) 5 has fundamentally changed the above disadvantages of php (as the mainstream development language. The Zend II engine is used to provide a complete object model and improved syntax design. Php (as the mainstream development language) becomes a script language with complete design and real object-oriented capabilities. We expect that the emergence of php (as the mainstream development language) 5 will give the entire php (as the mainstream development language) the community brings a new wave of database and application development improvements.

Php (as the mainstream development language) version 5.0 has enhanced the following features. First, fully implement object-oriented. In php (as the mainstream development language) version 4, the default value is "deep copy". in php (as the mainstream development language) 5, the default value is "shallow copy. Therefore, php (as the current mainstream development language) 5 is not fully compatible with php (as the current mainstream development language) 4. However, it provides the name php (as the current mainstream development language) compatible Mode. The second is the xml (standardization is getting closer and closer) function. php (as the mainstream development language) version 5.0 supports intuitive access to xml (standardization is getting closer and closer) the interface for processing data and xml (standardization is getting closer and closer) named Simplexml (standardization is getting closer and closer. At the same time, the xml (standardization is getting closer and closer) Web service support is enhanced, and the standard supports the SOAP extension module.

In terms of databases, the new version of php (as the mainstream development language) provides a new interface designed to access MySQL (the best combination with PHP)-MySQL (the best combination with PHP) I. In addition to the previous interface, you can also use the new functions of MySQL (the best combination with PHP), such as the object-oriented interface and Prepared Statement (Prepared Statement. In addition, php (as the mainstream development language) 5.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.