RussellReal Posted June 13, 2009 Share Posted June 13, 2009 like.. $abc = new WhoCares(); echo getObjectName($abc); how would I get it to echo 'WhoCares' lol ------------------ NVM I got it, for anybody else: get_class Link to comment https://forums.phpfreaks.com/topic/162018-solved-with-php-classes-can-you-get-the-class-name-from-the-instance-of-the-class/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.