Count Characters
1 min read
Jun 2, 2026
---
title: count_characters
autoseo:
enabled: true
theme: learn2
child_type: default
admin:
children_display_order: collection
visible: true
---
count_characters — This is used to count the number of characters in a variable/string
- value: the string to process
- count_spaces: if
true, thewhite-spacecharacters are counted as well
if $name equal to "Cold Wave Linked to Temperatures."
{$name}
{$name|count_characters}
{$name|count_characters:true}
The above example will output:
Cold Wave Linked to Temperatures.
29
33
Leave a Comment