编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « ReflectionClass::export
  • ReflectionClass::getConstants »
  • PHP Manual
  • ReflectionClass
  • 获取定义过的一个常量

ReflectionClass::getConstant

(PHP 5, PHP 7)

ReflectionClass::getConstant — 获取定义过的一个常量

说明

public ReflectionClass::getConstant ( string $name ) : mixed

获取定义过的一个常量。

Warning

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

参数

name

常量的名称。

返回值

常量的值。

参见

  • ReflectionClass::getConstants() - 获取一组常量

相关文章
php 文件系统 预定义常量php bcompiler 函数 写入定义过的类的字节码php bcompiler 函数 写入定义过的常量的字节码php 杂项 函数 定义一个常量php gmagick 预定义常量php 预定义常量 signature algorithmsphp pdo 预定义常量php proctitle 预定义常量php reflectionclass 获取定义过的一个常量php reflectionclass 获取一组常量php reflectionclass 根据已定义的类获取所在扩展的 reflectionextension 对象php reflectionclass 获取定义的类所在的扩展的名称php reflectionclass 获取定义类的文件名php reflectionclass 获取接口php reflectionclass 返回这个类所使用 traits 的名称的数组php reflectionclass 检查常量是否已经定义php reflectionclass 检查方法是否已定义php reflectionclass 检查属性是否已定义php reflectionclass 检查类是否由扩展或核心在内部定义php reflectionclass 检查是否由用户定义的
关注编程学问公众号
编程学问网 湘ICP备20001732号