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

ReflectionClass::getConstants

(PHP 5, PHP 7)

ReflectionClass::getConstants — 获取一组常量

说明

public ReflectionClass::getConstants ( void ) : array

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

Warning

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

参数

此函数没有参数。

返回值

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

参见

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

相关文章
php fann 预定义常量php gnupg 预定义常量php iis 预定义常量php json 预定义常量php kadm5 预定义常量php mysqli 预定义常量php mysqlnd uh 预定义常量php ncurses 预定义常量php posix 预定义常量php quickhash 预定义常量php reflectionclass 获取定义过的一个常量php reflectionclass 获取一组常量php reflectionclass 获取类的构造函数php reflectionclass 获取类的一个属性的 reflectionpropertyphp reflectionclass 检查常量是否已经定义php reflectionclass 检查类是否是匿名类php reflectionclass 返回 reflectionclass 对象字符串的表示形式。php seaslog 预定义常量php xml rpc 预定义常量php zookeeper 预定义常量
关注编程学问公众号
编程学问网 湘ICP备20001732号