Re: Getting the Function name of the Calling Function- How ?
- From: Shyam Raj <thanashyam@xxxxxxxxx>
- Date: Mon, 15 Oct 2007 15:28:24 -0000
Tnx a lot pal..
On Oct 12, 7:13 pm, ZeldorBlat <zeldorb...@xxxxxxxxx> wrote:
On Oct 12, 9:41 am, Shyam Raj <thanash...@xxxxxxxxx> wrote:
I guess the Subject is a little ambiguos. I want to get the function
name which calls the target function.
Like
function xxx()
{
....
....
yyy(2,3);
}
function zzz()
{
....
yyy(5,6);
.....
}
function yyy($a,$ab)
{
...
...
echo "yyy() has been called by the function - ".$functionname;
}
Now how can I get the name of the function tat calls yyy().
This will be really useful for Error logging purposes.
<http://www.php.net/debug_backtrace>
If you're using this for anything other than debugging or error
logging it suggests a problem with your code.
.
- References:
- Getting the Function name of the Calling Function- How ?
- From: Shyam Raj
- Re: Getting the Function name of the Calling Function- How ?
- From: ZeldorBlat
- Getting the Function name of the Calling Function- How ?
- Prev by Date: Re: [PHP] please advise
- Next by Date: Re: [PHP] HTML Parse Issue
- Previous by thread: Re: Getting the Function name of the Calling Function- How ?
- Next by thread: RE: [PHP] Classes - Dumb question
- Index(es):
Relevant Pages
|