Given a class:
class SomeClass{
static $information = 'useful information';
}
I a trying to access a static variable in a set of php classes. Each class has the $information static variable. If I access the static variable directly
echo SomeClass::$information;
The program outputs the information, however if I try to access it storing it in a variable I get a error that the '::' is unexpected.
$class = SomeClass;
echo $class::$information;
The reason for storing the class in a variable is so that I can have a function that can create an array of Users or an array of Projects for example.