Summary: Functional Programming Core Concepts
Review what we learned in this chapter about core concepts of functional programming in PHP.
We'll cover the following
-
Pure functions, which have no side effects or secondary causes, are integral to functional programming.
-
The accuracy of a function can be verified by its referential transparency. That is, the ability to predict a function’s result based on its inputs.
-
A key aspect of functional programming is immutability. That is, the idea that data shouldn’t be changed.
Get hands-on with 1400+ tech skills courses.