rsegment($n[, $no_result = NULL])
Parameters:
$n (int) – Segment index number
$no_result (mixed) – What to return if the searched segment is not found Returns:
Routed segment value or $no_result value if not found Return type:
mixed
This method is identical to segment(), except that it lets you retrieve a specific segment from your re-routed URI in the event you are using CodeIgniter’s URI Routing feature.