CI_URI::rsegment()

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.

doc_CodeIgniter
2016-10-15 16:32:02
Comments
Leave a Comment

Please login to continue.