I am trying to define a PHP class with some static variables. I am trying to do the following to avoid using globals.
class class_Name{
private static $var1 = is_plugin_inactive('plugin/plugin.php'); //check if WordPress has this plugin active
public static function doSomeStuff(){
echo $var1;
}
}
//init class
class_Name::doSomeStuff();
This always get's me an error Parse error: syntax error, unexpected '(', expecting ',' or ';' in my_file.php
at line where I am defining the static variable.
Any help please.