php8.5
Home/ Manual/ reflection / reflectionproperty/ ReflectionProperty::isReadOnly

ReflectionProperty::isReadOnly

PHP function Edit on GitHub ✎

(PHP 8 >= 8.1.0)

Checks if property is readonly

Description

ReflectionProperty::isReadOnly(): bool

Checks whether the property is readonly.

Parameters Parameters

Return Values

true if the property is readonly, false otherwise.

See Also

  • ReflectionProperty::isPublic
  • ReflectionProperty::isProtected
  • ReflectionProperty::isPrivate
  • ReflectionProperty::isStatic

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