count_words[単語(yǔ)數(shù)]
count_words[計(jì)算詞數(shù)]
test.php:
$smarty = new Smarty;
$smarty->assign('articleTitle', 'ディーラーは正午に車の會(huì)話を聞くことになります。');
$smarty->display('test.html');
#test.html:{$articleTitle}
{$articleTitle|count_words}
出出:ディーラーは正午に車の話し聲を聞きます。# ##7#########