PHP ReflectionClassConstant::export 反射函数

  • 定义和用法

    ReflectionClassConstant::export - 导出类常量反射
  • 版本支持

    PHP4 PHP5 PHP7
    不支持 不支持 v7.1.0+支持
  • 语法

    ReflectionClassConstant::export( mixed $class , string $name [, bool $return ] )
    ReflectionClassConstant::export() 导出一个类常量的反射。
  • 参数

    参数 必需的 描述
    class 导出的反射。
    name 类常量的名称。
    return 设为 TRUE 时返回导出结果,设为 FALSE(默认值)则忽略返回。
  • 相关页面

    ReflectionClassConstant::__toString() - 返回ReflectionClassConstant对象的字符串表示形式