public static function fetchStaticProperty($class, $property)
    {
        $refl = new \ReflectionClass($class);
        $prop = $refl->getProperty($property);
        $prop->setAccessible(true);

        return $prop->getValue();
    }
public static function fetchStaticProperty($class, $property)
    {
        $refl = new \ReflectionClass($class);
        $prop = $refl->getProperty($property);
        $prop->setAccessible(true);

        return $prop->getValue();
    }
public static function fetchStaticProperty ( $ class , $ property ) { $ refl = new \ ReflectionClass ( $ class ) ; $ prop = $ refl -> getProperty ( $ property ) ; $ prop -> setAccessible ( true ) ; return $ prop -> getValue ( ) ; }
Fetch a property of a class, bypassing visibility restrictions.

@param string|object $class    class name or instance
@param string        $property property name

@return mixed Value of $class::$property
Fetch a property of a class bypassing visibility restrictions .