Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Bought Jack McDade's course on design. Going through it now...and it is SO well done!

— Justin Jackson, Transistor.fm

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 →