PHP获取类对象方法、属性、常量列表!

$r = new ReflectionClass($serv);
print_r($r->getConstants());
print_r($r->getProperties());
print_r($r->getMethods());


你可能感兴趣的:(PHP,method,constant,ReflectionClass,propertry)