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

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
主站蜘蛛池模板: 顺平县| 朔州市| 胶南市| 绥芬河市| 儋州市| 钟祥市| 瓦房店市| 扶余县| 嘉义市| 平果县| 丹巴县| 布尔津县| 商城县| 娄烦县| 哈尔滨市| 安宁市| 鄂托克旗| 宜阳县| 正阳县| 柳州市| 东乡县| 涿鹿县| 泽库县| 应城市| 巴中市| 崇州市| 平和县| 肇庆市| 游戏| 江川县| 襄汾县| 天门市| 京山县| 隆回县| 高尔夫| 南涧| 宁国市| 永春县| 石景山区| 锡林浩特市| 西昌市|