public function getSegment($index)
	{
		$result = $this->getSegments();

		return isset($result[$index]) ? $result[$index] : null;
	}
public function getSegment($index)
	{
		$result = $this->getSegments();

		return isset($result[$index]) ? $result[$index] : null;
	}
public function getSegment ( $ index ) { $ result = $ this -> getSegments ( ) ; return isset ( $ result [ $ index ] ) ? $ result [ $ index ] : null ; }
Returns the segment at the given index or null if the segment at the given index doesn't exists.

@param int $index
@return string|null the segment at the given index or null if the segment at the given index doesn't exists
Returns the segment at the given index or null if the segment at the given index doesn t exists .