Is there any way of finding out the name of a function programmatically? Is there for instance, anyway to do something like this?
function john_doe()
{
echo get_function_name();
}
john_doe();
// Desired output
john_doe
Even more useful might be...
function johin_doe()
{
debug();
}
function debug()
{
echo refering_function_name();
}
john_doe();
// Desired output
john_doe