$keyval
$keyval : array
List of cached uri segments
URI Class
Parses URIs and determines routing
_reindex_segments() : void
Re-index Segments
This function re-indexes the $this->segment array so that it starts at 1 rather than 0. Doing so makes it simpler to use functions like $this->uri->segment(n) since there is a 1:1 relationship between the segment array and the actual segments.
rsegment( $n, $no_result = FALSE) : string
Fetch a URI "routed" Segment
This function returns the re-routed URI segment (assuming routing rules are used) based on the number provided. If there is no routing this function returns the same result as $this->segment()
$n | ||
$no_result |
uri_to_assoc( $n = 3, $default = array()) : array
Generate a key value pair from the URI string
This function generates and associative array of URI data starting at the supplied segment. For example, if this is your URI:
example.com/user/search/name/joe/location/UK/gender/male
You can use this function to generate an array with this prototype:
array ( name => joe location => UK gender => male )
$n | ||
$default |