ReflectionClass::getConstants
(PHP 5, PHP 7, PHP 8)
ReflectionClass::getConstants — 获取一组常量
说明
public ReflectionClass::getConstants
(
) : array
获取某个类的全部已定义的常量,不管可见性如何定义。
警告
本函数还未编写文档,仅有参数列表。
参数
此函数没有参数。
返回值
常量的数组,常量名是数组的键,常量的值是数组的值。