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

is_numeric Modifier

Returns true if variable is a number or numeric string.

sequence: 4815162342
another_sequence: just type 4 8 15 16 23 42
{{ if sequence | is_numeric }}
{{ if another_sequence | is_numeric }}
@if (Statamic::modify($sequence)->isNumeric()->fetch()) ... @endif
@if (Statamic::modify($another_sequence)->isNumeric()->fetch()) ... @endif
true
false
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →