array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'reflectionproperty.getmodifiers.php', 1 => 'ReflectionProperty::getModifiers', 2 => 'Gets the property modifiers', ), 'up' => array ( 0 => 'class.reflectionproperty.php', 1 => 'ReflectionProperty', ), 'prev' => array ( 0 => 'reflectionproperty.gethooks.php', 1 => 'ReflectionProperty::getHooks', ), 'next' => array ( 0 => 'reflectionproperty.getname.php', 1 => 'ReflectionProperty::getName', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/reflection/reflectionproperty/getmodifiers.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ReflectionProperty::getModifiers

(PHP 5, PHP 7, PHP 8)

ReflectionProperty::getModifiersGets the property modifiers

说明

public ReflectionProperty::getModifiers(): int

Gets the modifiers.

参数

此函数没有参数。

返回值

A numeric representation of the modifiers. The actual meaning of these modifiers are described under predefined constants.

参见