September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool is_subclass_of(object obj, string parent_class_name)
| obj | Object to test for being a subclass of parent_class_name |
| parent_class_name | Name of the class to test with |
Finds whether an object’s class is a subclass of a given class.
Returns:
TRUE if the given object is a subclass of the given class; FALSE for all other cases
Description:
is_subclass_of() is used to determine whether the class from which a given object is instantiated is a subclass of the given class.
Availability:
UNIX, Windows
Version:
4.0b4+
See also:
get_parent_class()
Example:
class vehicle { var $passenger_num; var $power_source; var $travel_medium; } class jinrikisha extends vehicle { var $wheels ... |
Read now
Unlock full access