Re: getting a function name of the calling function
| From: | Joshua E Minnie | Date: | Wed, 01 May 2002 20:16:42 +0000 |
| Subject: | Re: getting a function name of the calling function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-95592@lists.php.net to get a copy of this message | ||
I actually need it to print out the name of itself for error detection
purposes.
> > Does anybody know of any constants or predefined functions that will
> > retrieve the calling functions name? For example:
> >
> > <?
> > function new_func($somedata) {
> > echo "I am function ".get_func_name();
> > }
> > ?>
This example should print out:
I am function new_func
Is this possible?