php8.5
Home/ Manual/ reflection / reflectionclassconstant/ ReflectionClassConstant::isPublic

ReflectionClassConstant::isPublic

PHP function Edit on GitHub ✎

(PHP 7 >= 7.1.0, PHP 8)

Checks if class constant is public

Description

ReflectionClassConstant::isPublic(): bool

Checks if the class constant is public.

Parameters Parameters

Return Values

true if the class constant is public, otherwise false

See Also

  • ReflectionClassConstant::isFinal
  • ReflectionClassConstant::isPrivate
  • ReflectionClassConstant::isProtected

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