php8.5
Home/ Manual/ reflection / reflectionclass/ ReflectionClass::getStaticProperties

ReflectionClass::getStaticProperties

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Gets static properties

Description

ReflectionClass::getStaticProperties(): array

Get the static properties.

Parameters Parameters

Return Values

The static properties, as an array.

Changelog

VersionDescription
8.3.0The return type of ReflectionClass::getStaticProperties has been changed to array from ?array.

See Also

  • ReflectionClass::getStaticPropertyValue
  • ReflectionClass::setStaticPropertyValue

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