php8.5
Home/ Manual/ reflection / reflectionfunctionabstract/ ReflectionFunctionAbstract::getDocComment

ReflectionFunctionAbstract::getDocComment

PHP function Edit on GitHub ✎

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

Gets doc comment

Description

ReflectionFunctionAbstract::getDocComment(): string|false

Get a Doc comment from a function.

Parameters Parameters

Return Values

The doc comment if it exists, otherwise false

See Also

  • ReflectionFunctionAbstract::getStartLine

Source: reference/reflection/reflectionfunctionabstract/getdoccomment.xml · from the official PHP manual (php/doc-en)