ReflectionProperty::isReadOnly
(PHP 8 >= 8.1.0)
ReflectionProperty::isReadOnly — 检查属性是否为只读
参数
此函数没有参数。
返回值
如果属性是只读的,则返回 true
,否则为 false
。
参见
- ReflectionProperty::isPublic() - Checks if property is public
- ReflectionProperty::isProtected() - Checks if property is protected
- ReflectionProperty::isPrivate() - Checks if property is private
- ReflectionProperty::isStatic() - Checks if property is static

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/reflectionproperty.isreadonly.php