I want to find the token's name passed by augment into a function.
class Norm
{
const STR_NORM = 0;
const INT_NORM = 0;
}
function foo($Arg1, $Arg2 = NULL)
{
getConstName($Arg1); # Should Return STR_NORM;
return $Arg1, $Arg2;
}
echo foo(Norm::STR_NORM);
Is there any way to implement getConstName via the PHP Reflection API?