Gentle Introduction to Functional PHP for WordPress Developers: Using Filter and Map on Arrays of Posts

Fred’s post last week was about filtering through arrays of posts and ordering them. He foreached through arrays, and then used PHP’s usort() function to get a list of alphabetized posts with comments open. That got me thinking a little bit about a topic I very briefly touched on in my summary of the JavaScript ecosystem: functional programming.