I need to use constant as class name for acces to this class static property, that is
class a { public static $name = \"Jon\"; } define(\"CLASSNAME\",
It's possible with reflection:
class a { public static $name = "Jon"; } define("CLASSNAME", "a"); $obj = new ReflectionClass(CLASSNAME); echo $obj->getStaticPropertyValue("name");
If it is a good design choice is another question...