I am receiving the error:
Message : syntax error, unexpected '*', expecting ',' or ';'
when I try to use math symbols to define a variable inside a class. For example,
class Foo {
public static $test = 1+1;
}
echo Foo::$test;
yields this error. Is it possible to use math within class variable definitions in PHP?