(PHP 5, PHP 7, PHP 8)
ReflectionClass::getDocComment — Gets doc comments
Gets doc comments from a class. Doc comments start with class TestClass { }$rc = new ReflectionClass('TestClass');var_dump($rc->getDocComment());?>
class TestClass { }$rc = new ReflectionClass('TestClass');var_dump($rc->getDocComment());?>
The above example will output:
string(61) ""