derive function that called a function?
| From: | Shawn McKenzie | Date: | Tue, 25 Feb 2003 03:45:59 +0000 |
| Subject: | derive function that called a function? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-137030@lists.php.net to get a copy of this message | ||
Is there any way to determine what function (if any) called a particular
function???
Example:
function myFuncA() {
myFuncB();
}
function myFuncB() {
some stufff....;
}
In myFuncB() can I find out that I was called by myFuncA()???
FYI... I am trying to write some code that integrates with other peoples'
code and don't want to modify their functions (e.g. what args they call my
function with). But in certain cases I need to take certain actions if my
function was called by a particular function.
TIA
Shawn