I'm basically trying to grab everything after the 4th segment in the URL, however there is no fixed number of segments. Here is my attempt but for some reason $url is always 0 rather than the string I am looking for. Any suggestions?
$url = '';
for ($counter = 4; $counter <= $this->uri->total_segments(); $counter++) {
$url += $this->uri->slash_segment($counter);
}
echo $url;