(PHP 5 >= 5.1.0, PHP 7)
ReflectionClass::getDocComment — Gets doc comments
Gets doc comments from a class.
이 함수는 현재 문서화 되어있지 않습니다; 인수 목록만을 제공합니다.
이 함수는 인수가 없습니다.
The doc comment if it exists, otherwise FALSE
Example #1 ReflectionClass::getDocComment() example
<?php
/**
* A test class
*
* @param foo bar
* @return baz
*/
class TestClass { }
$rc = new ReflectionClass('TestClass');
var_dump($rc->getDocComment())
?>
위 예제의 출력:
string(55) "/** * A test class * * @param foo bar * @return baz */"