[我正在使用PHP版本5.5.12的WAMP服务器]
由于我已经开始阅读PHP OOP Books,我开始知道应该调用静态属性或方法,如
ALAssetsLibrary *al = [[ALAssetsLibrary alloc] init];
assets = [[NSMutableArray alloc] init];
[al enumerateGroupsWithTypes:ALAssetsGroupAll
usingBlock:^(ALAssetsGroup *group, BOOL *stop)
{
[group enumerateAssetsUsingBlock:^(ALAsset *asset, NSUInteger index, BOOL *stop)
{
if (asset)
{
NSLog(@"%@",asset);
NSLog(@".. do something with the asset");
}
}
];
}
failureBlock:^(NSError *error)
{
// User did not allow access to library
// .. handle error
}
] ;
但今天我尝试了这个
ClassName::$Propertyname;
请让我了解我的代码做了什么或我做错了什么。这位学习者非常感激任何帮助。
$InitializedClass = new Class($args);
echo $InitializedClass::$ClassStaticProperty; //It Worked