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?
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…