count_charactersParameter PositionTypeRequiredDefaultDescription1booleanNofalseThis determines whether or not to include
whitespace characters in the count.
This is used to count the number of characters in a variable.
count_characters
assign('articleTitle', 'Cold Wave Linked to Temperatures.');
$smarty->display('index.tpl');
?>
]]>
Where index.tpl is:
This will output:
See also count_paragraphs,
count_sentences and
count_words