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里的值连接到给定的变量后面)";
提交重置代码
  • 推荐课程
  • 评论
  • 问答
  • 笔记
  • 课件下载
课件暂不提供下载,工作人员正在整理中,后期请多关注该课程~