cat[connection string]

cat (connect the value in cat to the given variable)

test.php:
$smarty = new Smarty;
$smarty->assign('articleTitle', "Psychics predict world didn't end");
$smarty->display('test.html');

test.html:
{$articleTitle|cat:" yesterday."}

Output:
Psychics predict world didn't end yesterday.

Continuing Learning
||
<?php echo "cat(将cat里的值连接到给定的变量后面)";
submitReset Code