<< Back to man.ChinaUnix.net

lower
小写

This is used to lowercase a variable.
将变量字符串小写

Example 5-13. lower
例 5-13.小写

index.php:

$smarty = new Smarty;
$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.');
$smarty->display('index.tpl');

index.tpl:

{$articleTitle}
{$articleTitle|lower}

OUTPUT:

Two Convicts Evade Noose, Jury Hung.
two convicts evade noose, jury hung.