FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Function that returns name of itself?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Function that returns name of itself? [message #169451] Mon, 13 September 2010 17:18 Go to previous message
MikeB is currently offline  MikeB
Messages: 65
Registered: September 2010
Karma:
Member
is there a function that one can use in (for example) an echo or print
command for debugging that will return the name of the function?

For instance

<?php



function abc(){
echo my_name_is();
return 0;
}

function def(){
echo my_name_is();
return 2;
}
<?

I guess I could hardcode the function name in the echo statement, but I
like messing around. :) I did look at php.net for a while but couldn't
find anything.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Job opening at RNT Labs Chandigarh
Next Topic: Something I have never seen before
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 14:53:44 GMT 2024

Total time taken to generate the page: 0.04695 seconds