getSegments() getSegments( $i = null) Get request segments. If you don't provide a segment number will return all segments. Parameters $i