RE: [PHP] Identify which function called another
| From: | Michael Sims | Date: | Thu, 13 Jan 2005 04:33:10 +0000 |
| Subject: | RE: [PHP] Identify which function called another | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206272@lists.php.net to get a copy of this message | ||
Lars B. Jensen wrote:
> Is there any way, I from one function can identify which other
> function called it, without parameter passing the name manually ?
You can get this information from debug_backtrace()...
http://www.php.net/manual/en/function.debug-backtrace.php