Hello Group,
as I know, I can dynamically call functions of dynamic classes, like:
$myClassname = "MyClass";
$myMethodname = "myMethod";
$result = $myClassname->$myMethodname();
But what can I do, when I want to access a static class variable? A construction like
$myVariable = "MyStaticClass::${$myVariable}"
or even
$myMethodCall = "MyStaticClass::getStaticVariable"
does not work since the last only works if the method is defined directly in the mentioned class, not in a superclass. Does anybody know how to make it work correctly?
thx
Sebastian