PHP5.5beta4 released

Source: Internet
Author: User
Briefly understand the new features of PHP5.5: (1) added Generator. Generator is a Generator that can return Iterator. The keyword yield is added for this purpose. (2) Add the finally keyword. That is, try? Catchfinally set... (3) foreach supports the list () function. For example: foreach ($

Briefly understand the new features of PHP 5.5: (1) added Generator. Generator is a Generator that can return Iterator. The keyword yield is added for this purpose. (2) Add the finally keyword. That is, try? Catch finally set... (3) foreach supports the list () function. For example: foreach ($

A brief introduction to the new features of PHP 5.5:

(1) added Generator. Generator is a Generator that can return Iterator. The keyword yield is added for this purpose.

(2) Add the finally keyword. That is, try? Catch finally set...

(3) foreach supports the list () function. For example, foreach ($ array as list ($ a, $ B.

(4) empty () supports any expression. In this case, empty is like a function, and the current empty (null) is a fatal error.

(5) array and? The direct quantity of string can be referenced directly. For example, echo [1, 2, 3] [0] and echo 'php' [0]

(6) New password hash Api, and improved GD.

Conclusion: PHP5.5 is not a major upgrade, but it is quite practical.

Original article address: PHP 5.5 beta4 released. Thank you for sharing it.

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.