Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Just exceptional. Thank you so much, Jack, you smashed it.

— Hugo, Developer

str_pad_left Modifier

This modifier returns the string padded on the left to the specified padding length (paramameter 1) with a character of choice (parameter 2).

{{ 1 | str_pad_left(2,0) }}
{{ Statamic::modify(1)->strPadLeft([2, 0]) }}
01
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →