Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

This course is the most refreshing take on teaching design that I've come across.

— Mikaël Sévigny, Developer

is_alpha Modifier

Returns true if string contains only alphabetic characters. Numbers, punctuation, whitespace, and another other special characters will cause a false.

secret_phrase: abcdefg
even_more_secret_phrase: abc123
{{ if secret_phrase | is_alpha }}
{{ if even_more_secret_phrase | is_alpha }}
@if (Statamic::modify($secret_phrase)->isAlpha()->fetch()) @endif
@if (Statamic::modify($even_more_secret_phrase)->isAlpha()->fetch()) @endif
true
false
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →