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

ReflectionClass::getConstants

(PHP 5, PHP 7)

ReflectionClass::getConstants — 获取一组常量

说明

public ReflectionClass::getConstants ( void ) : array

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

Warning

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

参数

此函数没有参数。

返回值

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

参见

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

相关文章
php bbcode 预定义常量php cairo 预定义常量php 预定义常量 file descriptor flagsphp geoip 预定义常量php inotify 预定义常量php 多字节字符串 预定义常量php 从php 5.5.x 移植到 php 5.6.x 新加的全局常量php yp/nis 预定义常量php nsapi 预定义常量php 预定义常量 version constantsphp parle 预定义常量php 预定义常量 constants for optionsphp 预定义常量 posix mknod constantsphp reflectionclass 获取定义过的一个常量php reflectionclass 获取一组常量php reflectionclass 获取一组属性php reflectionclass 检查常量是否已经定义php reflectionclass 检查类是否是抽象类(abstract)php reflectionclass 设置静态属性的值php sdo das relational 预定义常量
关注编程学问公众号
编程学问网 湘ICP备20001732号