src/includes/classes/Core/Utils/UrlQuery.php
public function removeArgs(array $arg_keys, string $url_uri_qsl): string
    {
        $url_uri_qsl = $this->c::parseUrl($url_uri_qsl);
        $args        = []; // Initialize.

        if (isset($url_uri_qsl['query'][0])) {
            $args = $this->parse($url_uri_qsl['query']);
        }
        $arg_keys             = array_fill_keys($arg_keys, null);
        $args                 = array_diff_key($args, $arg_keys);
        $url_uri_qsl['query'] = $this->build($args);
        $url_uri_qsl          = $this->c::unparseUrl($url_uri_qsl);

        return $url_uri_qsl;
    }
public function removeArgs(array $arg_keys, string $url_uri_qsl): string
    {
        $url_uri_qsl = $this->c::parseUrl($url_uri_qsl);
        $args        = []; // Initialize.

        if (isset($url_uri_qsl['query'][0])) {
            $args = $this->parse($url_uri_qsl['query']);
        }
        $arg_keys             = array_fill_keys($arg_keys, null);
        $args                 = array_diff_key($args, $arg_keys);
        $url_uri_qsl['query'] = $this->build($args);
        $url_uri_qsl          = $this->c::unparseUrl($url_uri_qsl);

        return $url_uri_qsl;
    }
Remove query arg(s) from a URL.

@since 150424 Initial release.

@param array  $arg_keys    Query args to remove (keys only).
@param string $url_uri_qsl Input URL, URI, or query string w/ a leading `?`.

@return string The `$url_uri_qsl` w/o query arg(s).