Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<ReflectionClassConstant::getDeclaringClassReflectionClassConstant::getModifiers>
^ReflectionClassConstantLast updated: Mon, 26 Oct 2026

ReflectionClassConstant::getDocComment

(PHP 7 >= 7.1.0, PHP 8)

ReflectionClassConstant::getDocComment — Gets doc comments

Description

public function ReflectionClassConstant::getDocComment(): string|false

Gets doc comments from a class constant.

Parameters

This function has no parameters.

Return Values

The doc comment if it exists, otherwise false


<ReflectionClassConstant::getDeclaringClassReflectionClassConstant::getModifiers>
^ReflectionClassConstantLast updated: Mon, 26 Oct 2026