class CI_URI
segment($n[, $no_result = NULL])
Parameters:
$n (int) – Segment index number
$no_result (mixed) – What to return if the searched segment is not found Returns:
Segment value or $no_result value if not found Return type:
mixed Permits you to retrieve a specific segment. Where n is the segment number you wish to retrieve. Segments are numbered from left to right. For example, if your full URL is this: http://example.com/index.php/news/local/metro/crime_is_up
The segment