lower
変数を小文字に置き換えます。(⇔upper)
例 5-12. lower
<?php
$smarty = new Smarty;
$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.');
$smarty->display('index.tpl');
?>
index.tpl :
{$articleTitle}
{$articleTitle|lower}
Two Convicts Evade Noose, Jury Hung.
two convicts evade noose, jury hung.
例 5-12. lower
<?php
$smarty = new Smarty;
$smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.');
$smarty->display('index.tpl');
?>
index.tpl :
{$articleTitle}
{$articleTitle|lower}
出力 :
Two Convicts Evade Noose, Jury Hung.
two convicts evade noose, jury hung.
2005年07月08日(金) 11:18:33 Modified by smarten