将变量里的所有单词首字大写。它与php的ucwords()函数类似。 参数位置类型必需默认描述1BooleanNoFALSE确定带数字的单词是否需要大写 例 5-2.首字大写 <?php$smarty->assign('articleTitle', 'next x-men film, x3, delayed.');?>Where the template is:{$articleTitle}{$articleTitle|capitalize}{$articleTitle|capitalize:true}Will output:next x-men film, x3, delayed.Next X-Men Film, x3, Delayed.Next X-Men Film, X3, Delayed.