Snippets tagged “function-name”
2 snippets use this tag.
- Get name of caller function in PHP?PHP
In PHP, the name of the caller function can be obtained using the debug_backtrace() function.
- How to get a function name as a string?Python
In Python, you can use the built-in function attribute __name__ to get the name of a function as a string.