PHP » PYTHON |
login |
register |
about
|
if isinstance(WF, WidgetFactory): print 'Yes, WF is a WidgetFactory' is_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
)
Checks if the given object is of this class or has this class as one of its parents. Parameters
Return ValuesReturns TRUE if the object is of this class or has this class as one of its parents, FALSE otherwise. Changelog
Examples
Example #1 is_a() example
<?php
Example #2 Using the instanceof operator in PHP 5
<?php
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|