PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<interface_existsis_subclass_of>
Last updated: Mon, 16 Jul 2012

is_a

(PHP 4 >= 4.2.0, PHP 5)

is_a --  如果对象属于该类或该类是此对象的父类则返回 TRUE

描述

bool is_a ( object object, string class_name )

如果对象是该类或该类是此对象的父类则返回 TRUE,否则返回 FALSE

参见 get_class()get_parent_class()is_subclass_of()




<interface_existsis_subclass_of>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST