Skip to content

Instantly share code, notes, and snippets.

@Anye
Created August 25, 2014 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Anye/49d1ea860c454ab3bdaa to your computer and use it in GitHub Desktop.
Save Anye/49d1ea860c454ab3bdaa to your computer and use it in GitHub Desktop.
php get function defination
function get_func_define($function_name)
{
$reflFunc = new ReflectionFunction($function_name);
return array(
'filename'=>$reflFunc->getFileName(),
'line'=> $reflFunc->getStartLine(),
'obj'=>$reflFunc
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment