get_class
Returns the name of the class of an object
Description
stringget_class
objectobj
This function returns the name of the class of which the
object obj is an instance. Returns
&false; if obj is not an object.
A class defined in a PHP extension is returned in its original notation.
In PHP 4 get_class returns a user defined class
name in lowercase, but in PHP 5 it will return the class name in it's
original notation too, just like class names from PHP extensions.
Using get_class
name();
?>
]]>
&example.outputs;
See also get_parent_class,
gettype, and
is_subclass_of.