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

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
主站蜘蛛池模板: 尼玛县| 溧阳市| 太康县| 微博| 广西| 金阳县| 阳西县| 桐乡市| 抚远县| 曲阳县| 山阳县| 怀集县| 萍乡市| 方正县| 镇康县| 崇文区| 团风县| 浑源县| 石棉县| 宣城市| 钟山县| 密山市| 海晏县| 柘荣县| 桂林市| 龙胜| 肇东市| 株洲县| 金平| 苏州市| 蒲城县| 莎车县| 岢岚县| 肇源县| 金湖县| 乐亭县| 苍南县| 扬州市| 铜鼓县| 广水市| 乐平市|