src/Leevel/Http/FileBag.php
public function getArr(string $key, array $defaults = [])
    {
        $files = [];

        foreach ($this->elements as $k => $value) {
            if (0 === strpos($k, $key) && null !== $value) {
                $files[] = $value;
            }
        }

        return $files ?: $defaults;
    }
public function getArr(string $key, array $defaults = [])
    {
        $files = [];

        foreach ($this->elements as $k => $value) {
            if (0 === strpos($k, $key) && null !== $value) {
                $files[] = $value;
            }
        }

        return $files ?: $defaults;
    }
取回文件数组
数组文件请在末尾加上反斜杆访问.

@param string $key
@param array  $defaults

@return mixed