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.