Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

For a software dev like me who has no idea how to create a cute hand-drawn dashed line, this course just 100% works.

— Ira Zayats, Developer

substr Modifier

Returns the string beginning at a given position with an optional length.
If length not specific, will return the rest of the string.

string: How neat is that?
{{ string | substr(0, 3) }}
{{ string | substr(4, 4) }}
{{ string | substr(-8, 8) }}
{{ Statamic::modify($string)->substr([0, 3]) }}
{{ Statamic::modify($string)->substr([4, 4]) }}
{{ Statamic::modify($string)->substr([-8, 8]) }}
How
neat
is that?
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →