Re: Get name of current function
| From: | Robert Vetter | Date: | Wed, 21 Feb 2001 11:39:10 +0000 |
| Subject: | Re: Get name of current function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40937@lists.php.net to get a copy of this message | ||
"Ide, Jim" wrote:
>
> Hi -
>
> Is there some way I can get the name of the currently executing function?
>
> For example:
>
> <?php
>
> function MyFunction () {
> echo "The currently executing function is: " . <here> ;
> }
Solution:>
function MyFunction () {
echo "The currently executing function is: MyFunction()" ;
}