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

Source: Internet
Author: User
Tags mysql functions
PHP5.0 officially released a number of new features not fully compatible with PHP4. 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. PHP5, which has long been expected by P, was officially released on August 5, 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 provide convenience for rapid development of WEB programs as much as possible. 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 emergence of PHP5 will bring a new wave of database and application development improvements to the entire PHP community.

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.

In August July 13, it was officially announced. The release of PHP5 is a milestone for both PHP and PHP users. In 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.