编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « ReflectionClass::getMethods
  • ReflectionClass::getName »
  • PHP Manual
  • ReflectionClass
  • 获取类的修饰符

ReflectionClass::getModifiers

(PHP 5, PHP 7)

ReflectionClass::getModifiers — 获取类的修饰符

说明

public ReflectionClass::getModifiers ( void ) : int

返回这个类访问修饰符的位字段。

参数

此函数没有参数。

返回值

返回 修饰符常量 的位掩码。

参见

  • ReflectionClass::getProperties() - 获取一组属性
  • Reflection::getModifierNames() - 获取修饰符的名称

相关文章
php 反射 reflectionclass 类php pcre模式 模式修饰符php reflectionclass 获取一组常量php reflectionclass 获取类的构造函数php reflectionclass 获取默认属性php reflectionclass 获取文档注释php reflectionclass 获取最后一行的行数php reflectionclass 获取类的修饰符php reflectionclass 获取一组属性php reflectionclass 获取类的一个属性的 reflectionpropertyphp reflectionclass gets a reflectionclassconstant for a class s constantphp reflectionclass gets class constantsphp reflectionclass 获取短名php reflectionclass 检查类是否是抽象类(abstract)php reflectionclass 检查类是否是匿名类php reflectionclass 返回了一个类是否可复制php reflectionclass 检查类是否声明为 finalphp reflectionclass 检查类的实例php reflectionclass 设置静态属性的值php reflectionclass 返回 reflectionclass 对象字符串的表示形式。
关注编程学问公众号
编程学问网 湘ICP备20001732号