This article is very outdated. PHP has closures, can natively pass callables as arguments and you don't need any of these workarounds:
https://www.php.net/manual/en/functions.anonymous.php
It's not idiomatic to do so, but you can totally write sort of functional PHP nowadays without any tricks. Stuff like `array_map` exists since PHP 4.