I am trying to access a static variable within a class by using a variable class name. I\'m aware that in order to access a function within the class, you
For calling static members you can use a code like this:
call_user_func("MyClass::my_static_method");
// or
call_user_func(array("MyClass", "my_static_method"));
Unfortunately the only way to get static members from an object seems to be get_class_vars():
$vars = get_class_vars("MyClass");
$vars['my_static_attribute'];