SyntaxFix
Write A Post
Hire A Developer
Questions
The accurate way is to use the __FUNCTION__ predefined magic constant.
__FUNCTION__
Example:
class Test { function MethodA(){ echo __FUNCTION__; } }
Result: MethodA.
MethodA