Possible Duplicate:
Is it possible to create static classes in PHP (like in C#)?
Can any one tell me if a php class can be declared as static ?
static class StaticClass
{
public static function staticMethod()
{
return 'foo';
}
}
This code giving me error.parse error: parse error, expecting `T_VARIABLE'