编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 apc 预定义常量php bcompiler 预定义常量php bcompiler 函数 写入定义过的常量的字节码php 杂项 函数 定义一个常量php 函数处理 函数 如果给定的函数已经被定义就返回 truephp gearman 预定义常量php gupnp 预定义常量php reflectionclass 获取定义过的一个常量php reflectionclass 获取一组常量php reflectionclass 根据已定义的类获取所在扩展的 reflectionextension 对象php reflectionclass 获取定义的类所在的扩展的名称php reflectionclass 获取定义类的文件名php reflectionclass 获取类的修饰符php reflectionclass 检查常量是否已经定义php reflectionclass 检查方法是否已定义php reflectionclass 检查属性是否已定义php reflectionclass 检查类是否由扩展或核心在内部定义php reflectionclass 检查是否由用户定义的php semaphore 预定义常量php soap 预定义常量
关注编程学问公众号
编程学问网 湘ICP备20001732号