(PHP 5, PHP 7, PHP 8)
ReflectionClass::getDocComment — 获取文档注释
从类中获取文档注释。文档注释以 class TestClass { }$rc = new ReflectionClass('TestClass');var_dump($rc->getDocComment());?>
class TestClass { }$rc = new ReflectionClass('TestClass');var_dump($rc->getDocComment());?>
以上示例会输出:
string(61) ""