(PHP 5 >= 5.2.0, PHP 7, PHP 8)
ReflectionFunctionAbstract::getName — Gets function name
Get the name of the function.
This function has no parameters.
The name of the function.
If you call getName() on an anonymous function you'll get "{closure}".