Organizational Research By

Surprising Reserch Topic

how to get name of calling function method in php


how to get name of calling function method in php  using -'php'

I am aware of function debug_backtrace, but I am looking for some ready to use implementation of function like GetCallingMethodName()? It would be perfect if it gave method's class too (if it is indeed a method).

I hope it (not doing it myself) want be taken as normal laziness, but as good programming laziness.

EDIT: Here is the answer:
http://stackoverflow.com/questions/190421/caller-function-in-php-5/190426#190426
    

asked Sep 15, 2015 by Joann74Vmdxd
0 votes
2 views



Related Hot Questions

7 Answers

0 votes
NULL
answered Sep 15, 2015 by SylviaVestcb
0 votes
NULL
answered Sep 15, 2015 by QYKMel
0 votes
NULL
answered Sep 15, 2015 by EssSteinman
0 votes
NULL
answered Sep 15, 2015 by VivMeza
0 votes
NULL
answered Sep 15, 2015 by EmeDemaine
0 votes
NULL
answered Sep 15, 2015 by Bai9873
0 votes
NULL
answered Sep 15, 2015 by LavonMusselm

...