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