Application/Uri.php
public function param($param, $value) {
		if ($value !== null) {
			$param = rawurlencode($param);
			$value = rawurlencode($value);
			$this->params[$param] = $value;
		} else {
			if (isset($this->params[$param])) {
				unset($this->params[$param]);
			}
		}
		return $this;
	}
public function param($param, $value) {
		if ($value !== null) {
			$param = rawurlencode($param);
			$value = rawurlencode($value);
			$this->params[$param] = $value;
		} else {
			if (isset($this->params[$param])) {
				unset($this->params[$param]);
			}
		}
		return $this;
	}
public function param ( $ param , $ value ) { if ( $ value !== null ) { $ param = rawurlencode ( $ param ) ; $ value = rawurlencode ( $ value ) ; $ this -> params [ $ param ] = $ value ; } else { if ( isset ( $ this -> params [ $ param ] ) ) { unset ( $ this -> params [ $ param ] ) ; } } return $ this ; }
Set a query param

Name and value will be url encoded with rawurlencode

@param string $param
Param name
@param string $value
Set a query param