public function remove_params($params = null) {
        if (!is_array($params)) {
            $params = func_get_args();
        }
        foreach ($params as $param) {
            unset($this->params[$param]);
        }
        return $this->params;
    }
public function remove_params($params = null) {
        if (!is_array($params)) {
            $params = func_get_args();
        }
        foreach ($params as $param) {
            unset($this->params[$param]);
        }
        return $this->params;
    }
public function remove_params ( $ params = null ) { if ( ! is_array ( $ params ) ) { $ params = func_get_args ( ) ; } foreach ( $ params as $ param ) { unset ( $ this -> params [ $ param ] ) ; } return $ this -> params ; }
Remove all params if no arguments passed.
Remove selected params if arguments are passed.

Can be called as either remove_params('param1', 'param2')
or remove_params(array('param1', 'param2')).

@param string[]|string $params,... either an array of param names, or 1..n string params to remove as args.
@return array url parameters
Remove all params if no arguments passed . Remove selected params if arguments are passed .