cat[連接字符串]
cat(將cat里的值連接到給定的變量后面)
test.php:
$smarty = new Smarty;
$smarty->assign('articleTitle', "Psychics predict world didn't end");
$smarty->display('test.html');
test.html:
{$articleTitle|cat:" yesterday."}
輸出:
Psychics predict world didn't end yesterday.