TPLix

No results for ""

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, the white-space characters are counted as well
Examples:

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

Not published. Used to notify you on approval.

Comments are moderated before appearing.