jekinney's avatar

What's wrong with $name = get_class($object);

run an if name is User do user stuff otherwise it's admin class so do admin stuff?

Previous

Please or to participate in this conversation.