src/Request/Http/HttpRequest.php
public static function replaceQueryParam($param, $value, $queryString)
    {
        $parsedQuery = self::parseQueryString($queryString);
        $parsedQuery[$param] = $value;
        return http_build_query($parsedQuery);
    }
public static function replaceQueryParam($param, $value, $queryString)
    {
        $parsedQuery = self::parseQueryString($queryString);
        $parsedQuery[$param] = $value;
        return http_build_query($parsedQuery);
    }
public static function replaceQueryParam ( $ param , $ value , $ queryString ) { $ parsedQuery = self :: parseQueryString ( $ queryString ) ; $ parsedQuery [ $ param ] = $ value ; return http_build_query ( $ parsedQuery ) ; }
Replaces a parameter in a query string with given value.

@param string $param the query param name to replace.
@param mixed $value the query param value to replace.
@param string $queryString the query string.
@return string the updated query string.
Replaces a parameter in a query string with given value .