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

ReflectionClassConstant::isPrivate

PHP function Edit on GitHub ✎

(PHP 7 >= 7.1.0, PHP 8)

Checks if class constant is private

Description

ReflectionClassConstant::isPrivate(): bool

Checks if the class constant is private.

Parameters Parameters

Return Values

true if the class constant is private, otherwise false

See Also

  • ReflectionClassConstant::isFinal
  • ReflectionClassConstant::isPublic
  • ReflectionClassConstant::isProtected

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