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

ReflectionClass::getConstants

(PHP 5, PHP 7)

ReflectionClass::getConstants — 获取一组常量

说明

public ReflectionClass::getConstants ( void ) : array

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

Warning

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

参数

此函数没有参数。

返回值

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

参见

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

相关文章
php 数组 预定义常量php 预定义常量 newt components flagsphp ibm db2 预定义常量php inclued 预定义常量php msql 预定义常量php openssl 预定义常量php reflectionclass 导出一个类php reflectionclass 获取定义过的一个常量php reflectionclass 获取一组常量php reflectionclass 获取命名空间的名称php reflectionclass 检查常量是否已经定义php reflectionclass 接口的实现php reflectionclass 从给出的参数创建一个新的类实例。php 保留字列表 预定义常量php snmp 预定义常量php statistics 预定义常量php 字符串 预定义常量php tcp 预定义常量php 预定义常量 win32service service status constantsphp xsl 预定义常量
关注编程学问公众号
编程学问网 湘ICP备20001732号