I’ve noticed a trend in PHP code to shy away from function application and closures. I understand to some extent. Useful, inline anonymous functions were not available until 5.3.0, which is relatively new. And create_function is an abomination.
Still, I think that PHP programmers just don’t think in this mindset, but it can be very useful.
Here is a rather contrived example, but one I’ve honestly seen an analogue of before.