fuel/fuel/core/classes/uri.php
public function get_segment($segment, $default = null)
	{
		if (isset($this->segments[$segment - 1]))
		{
			return $this->segments[$segment - 1];
		}

		return \Fuel::value($default);
	}
public function get_segment($segment, $default = null)
	{
		if (isset($this->segments[$segment - 1]))
		{
			return $this->segments[$segment - 1];
		}

		return \Fuel::value($default);
	}
public function get_segment ( $ segment , $ default = null ) { if ( isset ( $ this -> segments [ $ segment - 1 ] ) ) { return $ this -> segments [ $ segment - 1 ] ; } return \ Fuel :: value ( $ default ) ; }
Get the specified URI segment, return default if it doesn't exist.

Segment index is 1 based, not 0 based

@param   string  $segment  The 1-based segment index
@param   mixed   $default  The default value
@return  mixed
Get the specified URI segment return default if it doesn t exist .