TPLix

No results for ""

Count Words

1 min read Jun 2, 2026
--- title: count_words autoseo: enabled: true theme: learn2 child_type: default admin: children_display_order: collection visible: true ---

count_words — This is used to count the number of words in a variable/string

Examples:

if $name equal to "Dealers Will Hear Car Talk at Noon."


    {$name}
    {$name|count_words}
	

The above example will output:


	Dealers Will Hear Car Talk at Noon.
    7
    

Leave a Comment

Not published. Used to notify you on approval.

Comments are moderated before appearing.