复制代码 代码如下:
$ob->getfilename(),'line'=>$ob->getstartline());
}
if(function_exists($name)){
$ob = new reflectionfunction($name);
$info['function_'.$name]= array('file'=>$ob->getfilename(),'line'=>$ob->getstartline());
}
return $info;
}
http://www.bkjia.com/phpjc/736857.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/736857.htmltecharticle复制代码 代码如下: ?php function custom(){ } class custom{ public function index(){ } } print_r(get_define_position('custom')); /** * / * @param string $name 函数名或者类...