比如,有个文件:test.php<?php class Ren
{
function __construct() {xxxxx;} function heshui($a, $b, $c)
{
xxxxx;
} function chifan()
{
xxxxx;
}
}
?>
我想从这个源文件里获得 heshui($a, $b, $c) 和 chifan() 这两个函数,有什么办法?
{
function __construct() {xxxxx;} function heshui($a, $b, $c)
{
xxxxx;
} function chifan()
{
xxxxx;
}
}
?>
我想从这个源文件里获得 heshui($a, $b, $c) 和 chifan() 这两个函数,有什么办法?
解决方案 »
- Fatal error: Allowed memory size of 8388608 bytes exhausted
- 最后的20分求助:大家帮我看看这样的表格怎么输入/出?
- 在win下可以执行。在服务器上却不能执行了。。。是权限不够吗?
- Php能不能在linux环境下把数据导出成Access或Excel格式
- 关于变量名代换的问题,救急!
- 怎么用php提取ip地址倒数第一个点前面的字符串?
- 谈谈http://www.csdn.net/develop/Article/15/15431.shtm
- 读入外部文件的同名变量的问题
- 我从别的地方找了这个,可是她不运行,怎么办呀?
- 为啥汉字变成呢“?”号??各位大虾请多指点,(急!!!!!!)
- PHP 配置拒绝某个域名解析到自己的网站
- win8.1 专业版 64位 (PHP5.4.33) (没有使用wampserver)redis扩展无法生效
print_r(get_class_methods('Ren'));再详细点的就用反射include 'test.php';
$class = new ReflectionClass('ren');
Reflection::export($class);