Skip to content

Instantly share code, notes, and snippets.

@Anye Anye/func define
Created Aug 25, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.