lower [小寫]
lower [小寫]?
test.php:
$smarty = new Smarty;
$smarty->assign('articleTitle', '兩個罪犯逃避絞索,陪審團(tuán)洪。');
$ smarty->display('test.html');
test.html:
{$articleTitle}
{$articleTitle|lower}
輸出:
兩名罪犯逃避絞索,陪審團(tuán)洪.
兩名罪犯逃避絞索,陪審團(tuán)懸而未決。
lower [小寫]?
test.php:
$smarty = new Smarty;
$smarty->assign('articleTitle', '兩個罪犯逃避絞索,陪審團(tuán)洪。');
$ smarty->display('test.html');
test.html:
{$articleTitle}
{$articleTitle|lower}
輸出:
兩名罪犯逃避絞索,陪審團(tuán)洪.
兩名罪犯逃避絞索,陪審團(tuán)懸而未決。
看過本課程的同學(xué)也在學(xué)