PHP Callback Methods Inside Classes

Functions like array-map expect a valid callback funktion. A lot of people use the magic constant __FUNCTION__ to implement recursive behaviour.

But what if you need recursive behaviour in a class method? Fear not, this is how to pass the current methodName (insert your own mehtod name here) as a callback to functions like array-map:
array($this, ‚methodName‘)