smarty变量调节器--cat[连接字符串]

将cat里的值后接到给定的变量后面。

参数位置类型是否必须默认描述
1 string No empty 将cat里的值连接到给定的变量后面。
Example 5-3. cat
<?php
$smarty->assign('articleTitle', "Psychics predict world didn't end");
?> index.tpl: {$articleTitle|cat:" yesterday."} OUTPUT: Psychics predict world didn't end yesterday.
posted @ 2012-03-08 13:28  haiwei.sun  阅读(578)  评论(0编辑  收藏  举报
返回顶部