码迷,mamicode.com
首页 > Web开发 > 详细

PHP5.3-PHP7 新特性总结

时间:2016-09-04 06:50:04      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:

##PHP5.3

+Added "?:" operator

+Added lambda functions and closures

+Added support for namespaces

 

##PHP5.4

+Added short array syntax support ([1,2,3])

+Added array dereferencing support.

+Added class member access on instantiation ( e.g. (new foo)->bar() ) support

+<?= is now always available regardless of the short_open_tag_setting

+Added binary numbers format (0b001010)

+Added support for Traits

PHP5.3-PHP7 新特性总结

标签:

原文地址:http://www.cnblogs.com/ityang666/p/ityang16090401.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!