tl;dr

Arrow functions are very easy and I’m just an old man.


I remember that I saw arrow functions in js for the first time. It was pretty hard to understand for me, but I didn’t do anything in js in years, so I just get used to this unknown.

But recently I’m working in a project with PHP 7.4. And guess what. Yup, arrow functions arrived in PHP in exactly this version. So I hadn’t a choice but to sit down and understand this little bastard.

Arrow functions in PHP are fairly simple, yet quite nice, and a little different than ordinary lambda functions.

Continue reading