PHP Function for URI and URI Segments

Here’s a function I wrote to parse through the URI to get segments. I wrote it to use with CodeIgniter to get URI segments before they had been altered and “-” gets changed to “_”. It can be used in any application.

Usage:

Write a Comment