PHP5.0 officially announced incomplete compatibility with PHP4 and added multiple new functions

Source: Internet
Author: User
The long-waiting PHP5 was officially announced on April 9, July 13, local time. For PHP and PHP users, PHP5 was declared a milestone. PHP versions earlier than PHP5 were announced with simple syntax and rich

The long-waiting PHP5 was officially announced on April 9, July 13, local time. For PHP and PHP users, PHP5 was declared a milestone. PHP versions earlier than PHP5 won the favor of many developers with simple syntax, rich library functions, and extremely fast script instructions, 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 goal of the author of PHP.

As we all know, PHP is just a template system written in Perl at the beginning, and the subsequent development idea is to provide convenience for the rapid development of WEB programs as much as possible. A large number of library functions are involved, while the development of language models is relatively slow. Although PHP4 has participated in the object-oriented design, its language model is not complete and lacks basic elements such as structure functions, destructor, abstract classes (interfaces), and exception handling. This greatly limits the use of PHP to complete large-scale exploitation of programs.

The birth of PHP5 has basically changed the above disadvantages of PHP. The adoption of the Zend II engine provides a complete object model and improved syntax design. PHP becomes a fully-designed script language with a real object-oriented ability. We expect that the presentation of PHP5 will bring a new round of libraries and development and improvement peaks to all PHP communities.

PHP5.0 enhances the following functions. First, complete object-oriented implementation. In PHP4, objects with deep copy as the default value are substituted. in PHP5, the default value is shortest 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. At the same time, the XML Web service support is strengthened, and the scale supports the SOAP expansion module.

In terms of databases, the new version of PHP is provided to visit MySQL's new interface-MySQLi. In addition to the previous interface, you can also apply the object-oriented interface, Prepared statements, and other new functions of MySQL. In addition, PHP5.0 also has a small capacity of 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.