There’s a function name error in the URI Class documentation - the heading says assoc_to_uri but the function in the example is assoc_to_str.
$this->uri->assoc_to_uri()
Takes an associative array as input and generates a URI string from it. The array keys will be included in the string. Example:
$array = array(‘product’ => ‘shoes’, ‘size’ => ‘large’, ‘color’ => ‘red’);
$str = $this->uri->assoc_to_str($array);
