Determining a PHP object's name

ikki_83

New Member
In Java (well, Android's version at least) all objects have a \[code\]getClass()\[/code\] method which returns the object's class and you can then call \[code\]getSimpleName()\[/code\] to get the human-readable name of the object. This is great for logging. I'd like to be able to do something similar in a PHP program I've been working on. Is there any way to find out what type of object "this" is?
 
Top