Get super global value

@param  string $name something like '_SERVER.HTTP_HOST'
@return string|array
@access protected
328671
protected function getSuperGlobalValue(/*# string */ $name)
    {
        $pos = strpos($name, $this->field_splitter);
        if (false !== $pos) {
            $pref = substr($name, 0, $pos);
            $suff = substr($name, $pos + 1);
            if (isset($GLOBALS[$pref][$suff])) {
                return $GLOBALS[$pref][$suff];
            }
        } else {
            $pref = $name;
            if (isset($GLOBALS[$pref])) {
                return $GLOBALS[$pref];
            }
        }
        return null;
    }
669497
public static function getValueForName($name)
    {
        foreach (self::getConstants() as $constant) {
            if ($constant['name'] === $name) {
                return $constant['value'];
            }
        }
        return false;
    }
61907
protected function getFromGlobal(string $name)
    {
        if (isset($GLOBALS[$name])) {
            return $GLOBALS[$name];
        }

        throw new \ErrorException(
            sprintf("Undefined global variable (%s) called!", $name));
    }
726535
public function getHeader($name) {
		$varKey = 'HTTP_' . str_replace('-', '_', mb_strtoupper($name));
		if (isset($this->serverVars[$varKey])) {
			return $this->serverVars[$varKey];
		}
		
		if (function_exists('apache_request_headers')) {
			$requestHeaders = apache_request_headers();
			if (isset($requestHeaders[$name])) {
				return trim($requestHeaders[$name]);
			}
		}
		
		if (function_exists('getallheaders')) {
			$requestHeaders = getallheaders();
			if (isset($requestHeaders[$name])) {
				return trim($requestHeaders[$name]);
			}
		}
		
		return null;
	}
446103
public function getServer(string $name)
    {
        $name = strtoupper($name);
        foreach ($this->server as $current => $value) {
            if ($current == $name) {
                return $value;
            }
        }

        return null;
    }
943039
public function getVariable(string $name)
    {
        switch (true) {
            case array_key_exists($name, $_ENV):
                return $_ENV[$name];
            case array_key_exists($name, $_SERVER):
                return $_SERVER[$name];
            default:
                $value = getenv($name);

                return $value === false ? null : $value;
        }
    }
217672
public function get(string $name)
    {
        if (!isset($this->services[$name])) {
            throw new \LogicException(\sprintf('Global variable %s could not be located. You should define it.', \json_encode($name)));
        }

        return $this->services[$name];
    }
1212407
protected function getGlobal($name, $default = null)
    {
        return array_key_exists($name, $this->globals)?$this->globals[$name]:$default;
    }
1361475
public function getValue($name)
	{
		if (! isset($this->values[$name]))
		{
			$this->values[$name] = arg($name);
		}

		return $this->values[$name];
	}
1118177
public static function value($name, $default = '')
    {
        $name = strtoupper($name);

        return isset($_SERVER[$name]) ? trim($_SERVER[$name]) : $default;
    }
557712
public function getValue(string $name): ?string
    {
        if (isset($this->data[$name])) {
            return $this->data[$name]->value;
        }
        return null;
    }
1169510
protected function matchEnv(/*# string */ $name)
    {
        if ('_' === $name[0]) {
            // PHP super globals like _SERVER, _COOKIE etc.
            $pos = strpos($name, '.');
            if (false !== $pos) {
                $pref = substr($name, 0, $pos);
                $suff = substr($name, $pos + 1);
                if (isset($GLOBALS[$pref][$suff])) {
                    return $GLOBALS[$pref][$suff];
                }
            }
        }
        return getenv($name);
    }
1100391
public static function getValue($name)
    {
        if (array_key_exists($name, $_GET)) {
            return $_GET[$name];
        }
        if (array_key_exists($name, $_POST)) {
            return $_POST[$name];
        }
        return null;
    }
55013
private function Value($name)
    {
        $value = Request::PostData($this->prefix . $name);
        return Str::Trim($value);
    }
286267
public function getByName($name, $global = false)
    {
        $actions = $global ? $this->getGlobalActions() : $this->getActions();

        //loop over the actions to find our culprit
        foreach ($actions as $action) {
            if ($action->getOption('action_name') === $name) {
                return $action;
            }
        }

        return false;
    }
323982
public function getValue($name)
    {
        if (! is_string($name)) {
            return null;
        }

        $bits = explode('.', $name);
        $postData = $_POST;

        foreach ($bits as $key) {
            if (is_array($postData) && isset($postData[$key])) {
                $postData = $postData[$key];
            } else {
                return null;
            }
        }

        return $postData;
    }
467581
protected static function getGlobalValue($key)
    {
        if (isset($_SERVER[$key]) && static::validate($_SERVER[$key])) {
            return $_SERVER[$key];
        }

        if (isset($_ENV[$key]) && static::validate($_ENV[$key])) {
            return $_ENV[$key];
        }

        if (@getenv($key) && static::validate(getenv($key))) {
            return getenv($key);
        }

        return null;
    }