Ajax/php/yii/URI.php
function segment($n, $no_result=FALSE) {
		return (!isset($this->segments[$n])) ? $no_result : $this->segments[$n];
	}
function segment($n, $no_result=FALSE) {
		return (!isset($this->segments[$n])) ? $no_result : $this->segments[$n];
	}
function segment ( $ n , $ no_result = FALSE ) { return ( ! isset ( $ this -> segments [ $ n ] ) ) ? $ no_result : $ this -> segments [ $ n ] ; }
Fetch a URI Segment

This function returns the URI segment based on the number provided.

@access public
@param integer
@param bool
@return string
Fetch a URI Segment