Thanks to visit codestin.com Credit goes to www.php.net
(PHP 8 >= 8.1.0)
ReflectionProperty::isReadOnly — Checks if property is readonly
Checks whether the property is readonly.
This function has no parameters.
true if the property is readonly, false otherwise.
true
false