PHP中的Classes/Objects Function
官方文档:http://cn2.php.net/classobj
Function
- __autoload — Attempt to load undefined class
- call_user_method_array — 调用一个用户方法,同时传递参数数组(已废弃)
- call_user_method — 对特定对象调用用户方法(已废弃)
- class_alias — Creates an alias for a class
- class_exists — 检查类是否已定义
- get_called_class — the "Late Static Binding" class name
- get_class_methods — 返回由类的方法名组成的数组
- get_class_vars — 返回由类的默认属性组成的数组
- get_class — 返回对象的类名
- get_declared_classes — 返回由已定义类的名字所组成的数组
- get_declared_interfaces — 返回一个数组包含所有已声明的接口
- get_declared_traits — Returns an array of all declared traits
- get_object_vars — 返回由对象属性组成的关联数组
- get_parent_class — 返回对象或类的父类名
- interface_exists — 检查接口是否已被定义
- is_a — 如果对象属于该类或该类是此对象的父类则返回 TRUE
- is_subclass_of — 如果此对象是该类的子类,则返回 TRUE
- method_exists — 检查类的方法是否存在
- property_exists — 检查对象或类是否具有该属性
- trait_exists — Checks if the trait exists