Возвращает количество символов в строке.
Пример 5-4. count_characters
index.php: $smarty = new Smarty; $smarty->assign('articleTitle', 'Cold Wave Linked to Temperatures.'); $smarty->display('index.tpl'); index.tpl: {$articleTitle} {$articleTitle|count_characters} OUTPUT: Cold Wave Linked to Temperatures. 32
См. также count_paragraphs, count_sentences и count_words