public function get(string $key)
    {
        foreach ($this->pairs as $pair) {
            if ($key === $pair[0]) {
                return $pair[1];
            }
        }

        return null;
    }
public function get(string $key)
    {
        foreach ($this->pairs as $pair) {
            if ($key === $pair[0]) {
                return $pair[1];
            }
        }

        return null;
    }
public function get ( string $ key ) { foreach ( $ this -> pairs as $ pair ) { if ( $ key === $ pair [ 0 ] ) { return $ pair [ 1 ] ; } } return null ; }
Returns the first value associated to the given parameter.

If no value is found null is returned

@see https://url.spec.whatwg.org/#dom-urlsearchparams-get
Returns the first value associated to the given parameter .