Reflection

5 entries

class_exists Function Checks whether a class is defined (or can be autoloaded); part of the family with interface_exists/enum_exists. method_exists Function Checks whether a method exists on a class or object. property_exists Function Checks whether a property exists on a class or object (including properties whose value is null). ReflectionClass Function Runtime introspection of a class: reads the class name, method list, and property list. reflectionproperty_isreadable Function Per-scope readability/writability checks (new in PHP 8.6, Reflection): factoring in visibility, asymmetric visibility, hooks, __get/__set and initialization state.