timbrown Posted February 22, 2007 Share Posted February 22, 2007 Hi, I want to output the name of a function from within the function. this doesn't work but something like this would be nice - function tester(){ echo $this.function_name; } even better would be object + function reference in one. any ideas? Link to comment https://forums.phpfreaks.com/topic/39616-solved-function-names/ Share on other sites More sharing options...
JasonLewis Posted February 22, 2007 Share Posted February 22, 2007 here read this topic i found, i scanned through it and it seemed to answer your question. http://www.thescripts.com/forum/thread221.html Link to comment https://forums.phpfreaks.com/topic/39616-solved-function-names/#findComment-191203 Share on other sites More sharing options...
monk.e.boy Posted February 22, 2007 Share Posted February 22, 2007 function tester(){ echo 'tester'; } What's wrong with that? monk.e.boy Link to comment https://forums.phpfreaks.com/topic/39616-solved-function-names/#findComment-191208 Share on other sites More sharing options...
timbrown Posted February 22, 2007 Author Share Posted February 22, 2007 here read this topic i found, i scanned through it and it seemed to answer your question. http://www.thescripts.com/forum/thread221.html thanks I'll try. Link to comment https://forums.phpfreaks.com/topic/39616-solved-function-names/#findComment-191222 Share on other sites More sharing options...
timbrown Posted February 22, 2007 Author Share Posted February 22, 2007 here read this topic i found, i scanned through it and it seemed to answer your question. http://www.thescripts.com/forum/thread221.html Excellent! that did the job nicely. Thanks. Link to comment https://forums.phpfreaks.com/topic/39616-solved-function-names/#findComment-191224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.