i would like to access an variable, which is in an class (not as an instance of an class) For example
class myclas
{
private $list=array('1','2','3');
[...]
}
I need to access the values of $list in that way: myclass::$list (witch is'n possible). Is there an alternative way?
Thank you.
//Edit: Thank you all for the answer! Is it possible to use an private variable as values for an public?
class myclas
{
private $_list=array('1','2','3');
public static $staticList=$_list;
[...]
}
Right now, i get an error "unexpected T_VARIABLE"