class_exists(类名):判断一个类是否存在
get_class(对象类型变量名):读取一个变量的类名
get_classs_vars(类名):读取类中所有的公开权限的变量,即 变量的值
get_class_methods(类名):读取类中公开方法名
property_exists(对象,属性):判断对象中是否存在某个属性
method_exists(对象,方法名):判断对象中是否存在某个方法
get_object_vars(对象类型变量名):返回由对象属性组成的关联数组
$对象2 = clone $对象1;:将对象1克隆给对象2,属性和各种方法完全一致,但之后各自的更改互不影响
发表评论