public class MyClass {
}
In Java, we can get class name with String className = MyClass.class.getSimpleName();
How to do this in PHP? I already know get_class()
, but it works only for objects. Currently I work in Active Record. I need statement like MyClass::className
.