cat[连接字符串] 登录

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.

下一节
<?php echo "cat(将cat里的值连接到给定的变量后面)";
提交 重置代码
章节 评论 笔记 课件
  • 取消 回复 发送
  • 取消 发布笔记 发送