SyntaxFix
Write A Post
Hire A Developer
Questions
The simplest way is:
echo debug_backtrace()[1]['function'];