Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

Segment Modifier

Returns a segment by number from any valid URL or URI.

example: /this/is/pretty/neat
{{ example | segment(4) }}
{{ Statamic::modify($example)->segment(4) }}
neat