(PHP 5 >= 5.1.0)
ReflectionClass::getDocComment — Gets doc comments
Gets doc comments from a class.
本函数暂无文档,仅有参数列表。
This function has no parameters.
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 */"