TPLix

No results for ""

Count Sentences

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

count_sentences — This is used to count the number of sentences in a variable/string

Examples:

if $name equal to "Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe."


    {$name}
    {$name|count_sentences}
	

The above example will output:


	Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.
    2
    

Leave a Comment

Not published. Used to notify you on approval.

Comments are moderated before appearing.