php反射实例应用-快速定位函数或类所在的位置-PHP源码
跳至
$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;
}
2. [图片] test.png
/php/36955.htmlwww.phpzy.comtrue/php/36955.htmlTechArticlephp反射实例应用-快速定位函数或类所在的位置-PHP源码 跳至 $ob->getFileName(),line=>$ob->getStartLine()); } if(function_exists($name)){ $ob = new ReflectionFunction($name); $info[function_.$name]= array(file=>$ob->getFil...
PHP之友评论