Does there exist a php function that returns the name of the function from which it is called?
i.e.:
my_function(){ $result = mystery_function(); }
value of $result is string "my_function"
thanks guys!
$result = __FUNCTION__;
Note that there are 2 underscores on each end.
thanks!