src/UrlBuilder.php
public function addQueryParameters($queryString)
    {
        $queries = preg_split('/&(amp;)?/i', $queryString);

        foreach ($queries as $v) {
            $explode = explode('=', $v);

            $name  = $explode[0];
            $value = isset($explode[1]) ? $explode[1] : '';
            $rpos  = strrpos($name, '?');

            if ($rpos !== false) {
                $name = substr($name, ($rpos + 1));
            }

            if (empty($name)) {
                continue;
            }

            $this->setQueryParameter($name, $value);
        }

        return $this;
    }
public function addQueryParameters($queryString)
    {
        $queries = preg_split('/&(amp;)?/i', $queryString);

        foreach ($queries as $v) {
            $explode = explode('=', $v);

            $name  = $explode[0];
            $value = isset($explode[1]) ? $explode[1] : '';
            $rpos  = strrpos($name, '?');

            if ($rpos !== false) {
                $name = substr($name, ($rpos + 1));
            }

            if (empty($name)) {
                continue;
            }

            $this->setQueryParameter($name, $value);
        }

        return $this;
    }
public function addQueryParameters ( $ queryString ) { $ queries = preg_split ( '/&(amp;)?/i' , $ queryString ) ; foreach ( $ queries as $ v ) { $ explode = explode ( '=' , $ v ) ; $ name = $ explode [ 0 ] ; $ value = isset ( $ explode [ 1 ] ) ? $ explode [ 1 ] : '' ; $ rpos = strrpos ( $ name , '?' ) ; if ( $ rpos !== false ) { $ name = substr ( $ name , ( $ rpos + 1 ) ) ; } if ( empty ( $ name ) ) { continue ; } $ this -> setQueryParameter ( $ name , $ value ) ; } return $ this ; }
Absorb the query parameters from a query string.

@param string $queryString The query string.

@return UrlBuilder
Absorb the query parameters from a query string .