Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

is_email Modifier

Returns true if a string is a valid email address.

not_an_email: waffles
{{ if an_email | is_email }}
{{ if not_an_email | is_email }}
@if (Statamic::modify($an_email)->isEmail()->fetch()) @endif
@if (Statamic::modify($not_an_email)->isEmail()->fetch()) @endif
true
false
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →