I know you can find the method name inside a declared method such as:
function getFunction() {
return __METHOD__;
}
echo getFunction(); // 'getFunction'
But how do you find the variable name of an anonymous function such as the example below?
$anonymous = function() {
return __VARIABLE__
}
echo $anonymous; // 'anonymous