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

length Modifier

Returns the number of items in an array or characters in a string.

array:
- Taylor Swift
- Left Shark
- Leroy Jenkins
string: LEEEEROOOYYYY JEEENKINNNSS!
{{ array | length }}
{{ string | length }}
{{ Statamic::modify($array)->length() }}
{{ Statamic::modify($string)->length() }}
3
27
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →