public function getAll(string $key): array
    {
        $filter = static function (array $pair) use ($key): bool {
            return $key === $pair[0];
        };

        return array_column(array_filter($this->pairs, $filter), 1);
    }
public function getAll(string $key): array
    {
        $filter = static function (array $pair) use ($key): bool {
            return $key === $pair[0];
        };

        return array_column(array_filter($this->pairs, $filter), 1);
    }
public function getAll ( string $ key ) : array { $ filter = static function ( array $ pair ) use ( $ key ) : bool { return $ key === $ pair [ 0 ] ; } ; return array_column ( array_filter ( $ this -> pairs , $ filter ) , 1 ) ; }
Returns all the values associated to the given parameter as an array or all
the instance pairs.

If no value is found an empty array is returned

@see https://url.spec.whatwg.org/#dom-urlsearchparams-getall
Returns all the values associated to the given parameter as an array or all the instance pairs .