Code ABC
浏览条目
中
EN
»
首页
/
浏览条目
/
反射
反射
共 5 个条目
class_exists
函数
检查类是否已定义(或能否通过自动加载器加载),与 interface_exists/enum_exists 同族。
method_exists
函数
检查类或对象上是否存在某个方法。
property_exists
函数
检查类或对象上是否存在某个属性(含值为 null 的属性)。
ReflectionClass
函数
类的运行时自省:读取类名、方法清单与属性清单。
reflectionproperty_isreadable
函数
按作用域判定属性可读/可写(PHP 8.6 Reflection 新增):综合可见性、非对称可见性、钩子、__get/__set 与初始化状态。