What is difference between METHOD and FUNCTION PHP constants? asked Feb 26 in PHP by Pantycle_Genefanty (12.9k points) 0 like 0 dislike 12 views Is there any difference between __METHOD__ and __FUNCTION__ PHP predefined constants and what is fundamental difference? php method function constant difference Your comment on this question: Your name to display (optional): Email me at this address if a comment is added after mine:Email me if a comment is added after mine Privacy: Your email address will only be used for sending these notifications. Anti-spam verification: To avoid this verification in future, please log in or register. 1 Answer 0 like 0 dislike answered Feb 26 by Pantycle_Genefanty (12.9k points) Difference there is! PHP predefined constant __FUNCTION__ contain only function or method name, e.g. bar, but __METHOD__ constant contain function or method name and also class name, e.g. Foo::bar. Your comment on this answer: Your name to display (optional): Email me at this address if a comment is added after mine:Email me if a comment is added after mine Privacy: Your email address will only be used for sending these notifications. Anti-spam verification: To avoid this verification in future, please log in or register.