In the first part of this book, I covered the theory behind functional programming, outlining how to write code in a functional style. I touched on some of the benefits of functional programming, but in this second part I’m going to double down on the benefits by creating some programs that demonstrate some of the real-life tasks that functional programming can make easier.
This chapter looks at using functional programming to improve the performance of your scripts. In the past, PHP has gotten a bad rap in the performance department, which is not entirely unsurprising given it ...