PHP Arrow Functions

Arrow functions were introduced in PHP 7.4 making them similar to JavaScript’s arrow functions. See how $y is scoped on both functions.

Published
Categorised as PHP