count_paragraphs Si usa per contare il numero di paragrafi contenuti in una variabile. count_paragraphs assign('articleTitle', "War Dims Hope for Peace. Child's Death Ruins Couple's Holiday.\n\nMan is Fatally Slain. Death Causes Loneliness, Feeling of Isolation."); $smarty->display('index.tpl'); ?> ]]> Dove index.tpl è: Questo stamperà: