(PHP 4 >= 4.0.0)

get_class -- Returns the name of the class of an object


string get_class (object obj)

This function returns the name of the class of which the object obj is an instance. Upon failure, FALSE is returned.

Note: get_class() returns a user defined class name in lowercase. A class defined in a PHP extension is returned in its original notation.

See also get_parent_class() and is_subclass_of()