Created
February 3, 2015 21:26
-
-
Save mghdotdev/0c6e937f74511f121a7a to your computer and use it in GitHub Desktop.
PHP: Find Function Location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$reflFunc = new ReflectionFunction('FUNCTION_NAME_HERE'); echo '<pre>'; var_dump($reflFunc->getFileName() . ':' . $reflFunc->getStartLine()); echo '</pre>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment