fuel/fuel/core/classes/uri.php
public static function update_query_string($vars = array(), $uri = null, $secure = null)
	{
		// unify the input data
		if ( ! is_array($vars))
		{
			$vars = array($vars => $uri);
			$uri = null;
		}

		// if we have a custom URI, use that
		if ($uri === null)
		{
			// use the current URI if not is passed
			$uri = static::current();

			// merge them with the existing query string data
			$vars = array_merge(\Input::get(), $vars);
		}

		// return the updated uri
		return static::create($uri, array(), $vars, $secure);
	}
public static function update_query_string($vars = array(), $uri = null, $secure = null)
	{
		// unify the input data
		if ( ! is_array($vars))
		{
			$vars = array($vars => $uri);
			$uri = null;
		}

		// if we have a custom URI, use that
		if ($uri === null)
		{
			// use the current URI if not is passed
			$uri = static::current();

			// merge them with the existing query string data
			$vars = array_merge(\Input::get(), $vars);
		}

		// return the updated uri
		return static::create($uri, array(), $vars, $secure);
	}
public static function update_query_string ( $ vars = array ( ) , $ uri = null , $ secure = null ) { // unify the input data if ( ! is_array ( $ vars ) ) { $ vars = array ( $ vars => $ uri ) ; $ uri = null ; } // if we have a custom URI, use that if ( $ uri === null ) { // use the current URI if not is passed $ uri = static :: current ( ) ; // merge them with the existing query string data $ vars = array_merge ( \ Input :: get ( ) , $ vars ) ; } // return the updated uri return static :: create ( $ uri , array ( ) , $ vars , $ secure ) ; }
Updates the query string of the current or passed URL with the data passed

@param  array|string  $vars    Assoc array of GET variables, or a get variable name
@param  string|mixed  $uri     Optional URI to use if $vars is an array, otherwise the get variable name
@param  bool          $secure  If false, force http. If true, force https

@return string
Updates the query string of the current or passed URL with the data passed