forked from umakantp/jsmart
-
Notifications
You must be signed in to change notification settings - Fork 2
count_paragraphs
pfaciana edited this page Sep 25, 2019
·
1 revision
Used to count the number of paragraphs in a variable.
Template:
{$articleTitle = 'War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\nMan is Fatally Slain. Death Causes Loneliness, Feeling of Isolation.'}
{$articleTitle|count_paragraphs}output:
War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.
Man is Fatally Slain. Death Causes Loneliness, Feeling of Isolation.
2
see also count_paragraphs in PHP Smarty documentation.