ReflectionClass::getStaticProperties

(PHP 5, PHP 7, PHP 8)

ReflectionClass::getStaticProperties获取静态(static)属性

说明

public ReflectionClass::getStaticProperties(): array

获取静态(static)属性。

参数

此函数没有参数。

返回值

静态(static)的属性,类型是 array

更新日志

版本 说明
8.3.0 ReflectionClass::getStaticProperties() 的返回类型已经从 array 更改为 ?array

参见