php: determine where function was called from
- by pol_b
is there a way to find out, where a function in PHP was called from?
example:
function epic()
{
fail();
}
function fail()
{
//at this point, how do i know, that epic() has called this function?
}