$reflection = new ReflectionClass('ExampleClass'); $value = $reflection->getStaticPropertyValue('example');
$reflection = new ReflectionClass('AnotherExampleClass'); $value = $reflection->getStaticPropertyValue('another_example');The package library for this method is the PHP Reflection extension, which is built-in and comes with PHP by default.