编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 ev 预定义常量php ffi 预定义常量php 杂项 函数 返回一个常量的值php hyperwave api 预定义常量php firebird/interbase 预定义常量php ktaglib 预定义常量php maxdb 预定义常量php 从 php 5.3.x 迁移到 php 5.4.x 新的全局常量php msession 预定义常量php newt 预定义常量php 预定义常量 radius vendor specific attribute typesphp reflectionclass 获取定义过的一个常量php reflectionclass 获取一组常量php reflectionclass 获取接口(interface)名称php reflectionclass 返回 trait 别名的一个数组php reflectionclass 检查常量是否已经定义php reflectionclass check whether this class is iterablephp ssh2 预定义常量php win32service 预定义常量
关注编程学问公众号
编程学问网 湘ICP备20001732号