PHP5.3--PHP7 新特性总结
Posted Blogs of C.K.Young
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP5.3--PHP7 新特性总结相关的知识,希望对你有一定的参考价值。
##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 新特性总结的主要内容,如果未能解决你的问题,请参考以下文章