PHP 8.1.28 Released!

ReflectionProperty::isReadOnly

(PHP 8 >= 8.1.0)

ReflectionProperty::isReadOnly检查属性是否为只读

说明

public ReflectionProperty::isReadOnly(): bool

检查属性是否为只读

参数

此函数没有参数。

返回值

如果属性是只读的,则返回 true,否则为 false

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top