Returns a files parameter by name.

@param string $key     The key
@param mixed  $default The default value if the parameter key does not exist
@param bool   $deep    If true, a path like foo[bar] will find deeper items

@return string
326015
protected function files($key = null, $default = null, $deep = false)
    {
        return $key === null ? $this->getFiles()->all() : $this->getFiles()->get($key, $default, $deep);
    }
1063928
public function file(string $key = null, $default = null)
    {
        if (is_null($key)) {
            return $this->getUploadedFiles();
        }
        return $this->getUploadedFiles()[$key] ?? $default;
    }
114962
public function get($key, $default = NULL) {

		return array_key_exists($key, $this->data) ? $this->data[$key] : $default;

	}
1131799
private function getDefaultValue($key, $default = null)
    {
        $value = null === $default && \array_key_exists($key, $this->defaults)
            ? $this->defaults[$key]
            : $default;

        return $this->getByManager($key, $value, $default);
    }
635198
public function get( $key, $default = null ) 
	{
		if ( !isset( $this->GET[$key] ) ) 
		{
			return $default;
		}
		return $this->GET[$key];
	}
833433
protected function getRecursiveArrayParameter($key, $default = null)
    {
        $matches = array();
        preg_match_all($this->getRecursiveArrayRegex(), $key, $matches);

        $array = null;
        if(count($matches) === 3 && count($matches[0]) > 0) {
            $name = $matches[1][0];
            $array = $this->getParameter($name);
            foreach($matches[2] as $match) {
                $recursiveKey = str_replace(array('[', ']'), array('', ''), $match);
                if((is_array($array) || $array instanceof \ArrayAccess) && isset($array[$recursiveKey])) {
                    $array = $array[$recursiveKey];
                }
                else {
                    $array = null;
                }
            }
        }

        return $array ?: $default;
    }
1224974
public static function getUserParam($key, $default = null)
  {
    return (array_key_exists($key, $_REQUEST) && !empty($_REQUEST[$key])) ? self::stripslashesRecursive($_REQUEST[$key]) : $default;
  }
993977
public function getField($name, $key, $default = null)
    {
        if (array_key_exists($name, $this->fields) && array_key_exists($key, $this->fields[$name])) {
            return $this->fields[$name][$key];
        }
        return $default;
    }
948471
public static function getStr(string $key, ?string $default = null): ?string
    {
        $value = ini_get($key);

        return $value === false || $value === '' ? $default : $value;
    }
1307760
public function getParam($key, $default = null)
    {
        if (isset($this->parameters[$key])) {
            return $this->parameters[$key];
        }

        return $default;
    }
1188638
public function getCustomParam($key, $default = null)
    {
        return array_key_exists($key, $this->customParams) ? $this->customParams[$key] : $default;
    }
345020
public function get($key, $default = null) {
        if (!$this->has($key)) {
            return $default;
        }

        return @unserialize(file_get_contents($this->baseDir . '/' . md5($key))) ?: $default;
    }
999654
public function getParam($key = null, $default = null)
    {
        if (null === $key) {
            return $this->data[self::P_PARAMS];
        }

        return $this->hasParam($key) ? $this->data[self::P_PARAMS][$key] : $default;
    }
841737
public function get($key, $default = NULL) {
		$keyArr = explode('.', $key);
		$fileName = $keyArr[0];
		
		if (!isset($this->map[$fileName])) {
			$this->loadConfig($fileName);
		}
		
		$rs = NULL;
		$preRs = $this->map;
		foreach ($keyArr as $subKey) {
			if (!isset($preRs[$subKey])) {
				$rs = NULL;
				break;
			}
			$rs = $preRs[$subKey];
			$preRs = $rs;
		}
		
		return $rs !== NULL ? $rs : $default;
	}
1229896
public function get($key, $default = null)
	{
		$this->validateKey($key);
		$this->namespace && $this->prefixValue($key);

		[$found, $value] = $this->doGet($key) ?? [false, null];

		return $found === true ? $value : $default;
	}
1203398
public function get($key, $default = null)
    {
        $value  = $this->raw($key, $default);
        $escape = $this->escape;
        return $escape($value);
    }
870550
public function getUserParam($key, $default = null)
        {
            if (isset($this->_params[$key])) {
                return $this->_params[$key];
            }

            return $default;
        }