php: determine where function was called from

Posted by pol_b on Stack Overflow See other posts from Stack Overflow or by pol_b
Published on 2010-06-02T19:09:34Z Indexed on 2010/06/02 19:14 UTC
Read the original article Hit count: 153

Filed under:
|

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?
}

© Stack Overflow or respective owner

Related posts about php

Related posts about function-calls