Find function declaration in PHP Aug 31, 2018 This is a simple way to find where the function is defined on your script <?php $reflFunc = new ReflectionFunction('function_name'); print $reflFunc->getFileName() . ':' . $reflFunc->getStartLine();