Hello
I have a reference to one of my classes.
Is there a way of knowing what class this object is instance of?
regards
how to find the class of an object
Moderator: General Moderators
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
PHP function get_class should do what you are asking for...
http://www.php.net/manual/en/ref.classobj.php
http://www.php.net/manual/en/ref.classobj.php