官术网_书友最值得收藏!

Chapter 2. New Features in PHP 7

PHP 7 has introduced new features that can help programmers write high-performing and effective code. Also, some old-fashioned features are completely removed, and PHP 7 will throw an error if used. Most of the fatal errors are now exceptions, so PHP won't show an ugly fatal error message any more; instead, it will go through an exception with the available details.

In this chapter, we will cover the following topics:

  • Type hints
  • Namespaces and group use declarations
  • The anonymous classes
  • Old-style constructor deprecation
  • The Spaceship operator
  • The null coalesce operator
  • Uniform variable syntax
  • Miscellaneous changes
主站蜘蛛池模板: 来安县| 郎溪县| 民丰县| 社会| 涞源县| 双流县| 曲阳县| 富阳市| 孝昌县| 个旧市| 红桥区| 大城县| 庐江县| 福鼎市| 长岛县| 定远县| 泰来县| 万荣县| 阿巴嘎旗| 漳平市| 兰西县| 奉化市| 普兰店市| 辛集市| 温泉县| 永昌县| 大方县| 宁乡县| 阿勒泰市| 云南省| 微山县| 左云县| 会同县| 大城县| 通海县| 武平县| 班玛县| 福建省| 墨脱县| 张北县| 长乐市|