|
Posted by Roy Kaldung on 05/08/07 09:04
gizz wrote:
> Hi,
>
> I'd like to get the name of the calling method. I can't find the solution.
> For example :
>
> function MyFct()
> {
> return TheOtherFct() ;
> }
>
> function TheOtherFct()
> {
> echo "Hi, the calling method is ..." ;
> return true ;
> }
>
> MyFct() ;
Hi, just check if the output of debug_backtrace fullfill your expectations.
hth,
Roy
Navigation:
[Reply to this message]
|