You could also do this in PHP itself:
$reflFunc = new ReflectionFunction('function_name');
print $reflFunc->getFileName() . ':' . $reflFunc->getStartLine();
For Class methods you can use $reflFunc = new ReflectionMethod($this, 'method_name');
$reflFunc = new ReflectionFunction('function_name');
print $reflFunc->getFileName() . ':' . $reflFunc->getStartLine();
For Class methods you can use $reflFunc = new ReflectionMethod($this, 'method_name');
No comments:
Post a Comment
Please Comment Here!