编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « ReflectionClass::getConstant
  • ReflectionClass::getConstructor »
  • PHP Manual
  • ReflectionClass
  • 获取一组常量

ReflectionClass::getConstants

(PHP 5, PHP 7)

ReflectionClass::getConstants — 获取一组常量

说明

public ReflectionClass::getConstants ( void ) : array

获取某个类的全部已定义的常量,不管可见性如何定义。

Warning

本函数还未编写文档,仅有参数列表。

参数

此函数没有参数。

返回值

常量的数组,常量名是数组的键,常量的值是数组的值。

参见

  • ReflectionClass::getConstant() - 获取定义过的一个常量

相关文章
php dbx 预定义常量php csprng 预定义常量php direct io 预定义常量php exif 预定义常量php 文件系统 预定义常量php gmagick 预定义常量php imap 预定义常量php ktaglib 预定义常量php mysql xdevapi 预定义常量php 预定义常量 signature algorithmsphp pdo 预定义常量php proctitle 预定义常量php reflectionclass 获取定义过的一个常量php reflectionclass 获取一组常量php reflectionclass 获取接口php reflectionclass 返回这个类所使用 traits 的名称的数组php reflectionclass 检查常量是否已经定义php reflectionclass 检查是否可迭代(iterateable)php trader 预定义常量php 预定义常量 win32 recovery action
关注编程学问公众号
编程学问网 湘ICP备20001732号