is_a()
function is_a(object $object_or_class, string $class, bool $allow_string = false): bool
Checks whether an object is of a given type or has it as one of its parents.
Parameters:
$object_or_class(object)$class(string)$allow_string(bool), defaultfalse, optional
Returns: bool
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how is_a is implemented in the compiler, see the internals page.