is_a
Returns &true; if the object is of this class or has this class as
one of its parents
Descriptionboolis_aobjectobjectstringclass_name
This function returns &true; if the object is of this class or
has this class as one of its parents, &false; otherwise.
is_a example
]]>
The is_a function is deprecated as of PHP 5 in
favor of the instanceof
type operator. In the above example we could use the following in
PHP 5:
Using the instanceof operator in PHP 5
]]>
See also get_class,
get_parent_class, and
is_subclass_of.