getMethods();//取得类中所有的名字
//$arr = $obj->getMethod('Calendar');//取得指定类的名字
//$arr = ReflectionClass::getMethod('myCal');
print_r($arr);
//Reflection::export(new ReflectionClass('ReflectionClass'));//通过此方法可以看到ReflectionClass中所有的属性和方法
?>
|
![]() |
|
| PHP技术首页 | PHP基础 | PHP应用 | PHP技巧 | PHP函数 | 网络相关 | XML应用 | 图像处理 | 数据库相关 | 文件处理 | 邮件处理 | 系统相关 | PHP安装 | 其它文章 | 分类 | 专题 | 留言本 | 投稿 | 搜索 |
getMethods();//取得类中所有的名字
//$arr = $obj->getMethod('Calendar');//取得指定类的名字
//$arr = ReflectionClass::getMethod('myCal');
print_r($arr);
//Reflection::export(new ReflectionClass('ReflectionClass'));//通过此方法可以看到ReflectionClass中所有的属性和方法
?>