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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.