Quantcast
Channel: php – Bram.us
Viewing all articles
Browse latest Browse all 166

PHP 8 in 8 Code Blocks

$
0
0

Brent has been following the PHP releases and featured up close. In this post he highlights 8 of the features that will make it into PHP 8

  1. Attributes (aka Annotations)
  2. Union types
  3. The static return type
  4. The just-in-time Compiler
  5. throw in Expressions
  6. Non-capturing catches
  7. Trailing commas in parameter lists
  8. New str_* functions

As a bonus he also adds the new Stringable interface and the ability to call ::class directly on objects.

PHP 8 in 8 Code Blocks →


Viewing all articles
Browse latest Browse all 166

Trending Articles