编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « 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 pthreads 方法修饰符php pcre模式 模式修饰符php reflectionclass 初始化 reflectionclass 类php reflectionclass 导出一个类php reflectionclass 获取定义过的一个常量php reflectionclass 获取方法的数组php reflectionclass 获取类的修饰符php reflectionclass 获取类名php reflectionclass 获取命名空间的名称php reflectionclass 获取父类php reflectionclass 检查常量是否已经定义php reflectionclass 检查方法是否已定义php reflectionclass 检查属性是否已定义php reflectionclass 接口的实现php reflectionclass 检查是否位于命名空间中php reflectionclass 返回了是否为一个 traitphp reflectionclass 检查是否由用户定义的php reflectionclass 从指定的参数创建一个新的类实例php reflectionclass 从给出的参数创建一个新的类实例。php reflectionclass 创建一个新的类实例而不调用它的构造函数
关注编程学问公众号
编程学问网 湘ICP备20001732号