Hi,
sorry for the title the problem is hard to describe in so few characters.
i need to be able to get a static class property from a dynamic class name:
i have a class name stored as a string:
and i need to call a static property of that class, normally i would do:
but the class name changes dynamically, so i cannot hard type it like here up. so i need to do something like this:
is this correct or will it crash?
thanks!
sorry for the title the problem is hard to describe in so few characters.
i need to be able to get a static class property from a dynamic class name:
i have a class name stored as a string:
Code:
$className = 'My_Class_Name';
Code:
My_Class_Name::$staticProperty;
Code:
$className::$staticProperty;
thanks!
Comment