我试图访问一个类的静态成员。
我的类是:
我的类是:
```
class MyClass {
public:
static int myStaticInt;
};
```
class A
{
public static $strName = 'A is my name'
public function xyz()
{
..
}
..
}
//Since I have bunch of classes stored in an array
$x = array('A');
echo $x::$strName;
我在打印时遇到了错误。如何打印'A is my name'?