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

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
主站蜘蛛池模板: 安丘市| 天等县| 嵊州市| 海城市| 漳州市| 荣昌县| 元江| 莒南县| 门头沟区| 石景山区| 三都| 濉溪县| 宾阳县| 新源县| 海丰县| 苍梧县| 苗栗县| 诸暨市| 涟源市| 集安市| 青田县| 潍坊市| 正镶白旗| 新密市| 齐齐哈尔市| 博客| 泸定县| 曲水县| 阳山县| 锦屏县| 浏阳市| 镇巴县| 万全县| 兖州市| 西乌| 县级市| 喀什市| 德格县| 陈巴尔虎旗| 宝鸡市| 六枝特区|