PHP Manualis_a(PHP 4 >= 4.2.0, PHP 5) is_a — Checks if the object is of this class or has this class as one of its parents Description
bool is_a
( object
$object
, string $class_name
[, bool $allow_string = FALSE
] )
Checks if the given Parameters
Return Values
Returns Changelog
Examples
Example #1 is_a() example
<?php Example #2 Using the instanceof operator in PHP 5
<?php See Also
![]() |
PHP-Index
New Tutorial entries
|