note 5121 deleted from Classes and Objects by ronabop
| From: | ronabop@php.net | Date: | Thu, 17 Aug 2000 09:58:29 +0000 |
| Subject: | note 5121 deleted from Classes and Objects by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2160@lists.php.net to get a copy of this message | ||
Anyone know of a way to determine the class of an object? Eg, in a parent class, I might want to
print out "My class is $class"., and have it work for each of my subclasses. Currently,
the only way seems to be for me to manually define the classname in a member var somewhere, probably
in the constructor for each subclass.