Skip to content

Instantly share code, notes, and snippets.

@kevindaus
Created March 13, 2020 04:35
Show Gist options
  • Save kevindaus/165269a4fcb3233ecbefc6504a05266e to your computer and use it in GitHub Desktop.
Save kevindaus/165269a4fcb3233ecbefc6504a05266e to your computer and use it in GitHub Desktop.
How to track function declaration in PHP
<?php
$reflFunc = new ReflectionFunction('THE_FUNCTION_NAME_HERE');
echo $reflFunc->getFileName() . ':' . $reflFunc->getStartLine();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment