Skip to content

Glossary: PHP Basics

arrow function

Also written: arrow functions, fn

A one-line form of anonymous function, such as `fn($price) => $price * 0.9`, which returns its expression without a `return` keyword.

Where the book teaches it

Related terms

closurearray_map()