I'm trying to declare a public static variable that is a array of arrays:
class Foo{
public static $contexts = array(
'a' => array(
'aa' => something('aa'),
'bb' => something('bb'),
),
'b' => array(
'aa' => something('aa'),
'bb' => something('bb'),
),
);
// methods here
}
function something($s){
return ...
}
But I get a error:
Parse error: parse error, expecting `')'' in ...
something()? Also, is this declared as a class property (public static $contexts) or somewhere in a method?