Page 1 of 1

how to find the class of an object

Posted: Thu Sep 09, 2004 3:32 am
by jasongr
Hello

I have a reference to one of my classes.
Is there a way of knowing what class this object is instance of?

regards

Posted: Thu Sep 09, 2004 3:34 am
by feyd
[php_man]get_class[/php_man] :roll:

Posted: Thu Sep 09, 2004 3:36 am
by CoderGoblin
PHP function get_class should do what you are asking for...
http://www.php.net/manual/en/ref.classobj.php