public function delete($name)
    {
        $nameString = TypeHinter::to('USVString', $name);
        array_splice($this->list, 0, count($this->list), array_filter($this->list, function ($pair) use ($nameString) {
            return $pair[0] !== $nameString;
        }));
        $this->update();
    }
public function delete($name)
    {
        $nameString = TypeHinter::to('USVString', $name);
        array_splice($this->list, 0, count($this->list), array_filter($this->list, function ($pair) use ($nameString) {
            return $pair[0] !== $nameString;
        }));
        $this->update();
    }
public function delete ( $ name ) { $ nameString = TypeHinter :: to ( 'USVString' , $ name ) ; array_splice ( $ this -> list , 0 , count ( $ this -> list ) , array_filter ( $ this -> list , function ( $ pair ) use ( $ nameString ) { return $ pair [ 0 ] !== $ nameString ; } ) ) ; $ this -> update ( ) ; }
Removes all name-value pairs whose name is name.
@link https://url.spec.whatwg.org/#dom-urlsearchparams-deletename URL Standard
@param string $name A USVString.
Removes all name - value pairs whose name is name .