class Engine
{
static $basePath = 'hello?';
the error i get is:
Parse error: parse error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
any ideas why this could be?
[web] [php] static vars?
i want to put a staticc var in my class, yet it complains that its not expected?!
Try
or maybe
class Engine{ public static $basePath = 'hello?';}
or maybe
class Engine{ public static $basePath;}Engine::$basePath = 'hello?';
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement