- Overview
- Chapter 1: list comprehension
- Chapter 2: partial application
- Chapter 3: access functions
- Chapter 4: function functions
- Chapter 5: mathematical functions
- Chapter 6: transformation functions
- Chapter 7: miscellaneous
Whenever you want to work with Functional PHP and not reference the fully qualified name, add use Functional as F; on
top of your PHP file or use use function Functional\function_name. The latter is used in the documentation is the
preferred way starting with PHP 5.6.
use function Functional\map;
map(range(0, 100), function($v) {return $v + 1;});