ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
<table width="100%" summary="Header navigation table" border="0" cellpadding="0" cellspacing="0"><tr><th colspan="3" align="middle">Smarty - the compiling PHP template engine</th></tr><tr><td width="10%" align="left" valign="bottom"><a accesskey="P" href="language.modifier.capitalize.html">Prev</a></td><td width="80%" align="center" valign="bottom">Chapter 5. Variable Modifiers[变量调节器]</td><td width="10%" align="right" valign="bottom"><a accesskey="N" href="language.modifier.count.characters.html">Next</a></td></tr></table> # cat[连接字符串] This value is concatenated to the given variable. 将cat里的值后接到给定的变量后面。 | Parameter Position | Type | Required | Default | Description | |-----|-----|-----|-----|-----| | 1 | string | No | *empty* | This value to catentate to the given variable. |   | 参数位置 | 类型 | 是否必须 | 默认 | 描述 | |-----|-----|-----|-----|-----| | 1 | string | No | *empty* | 将cat里的值连接到给定的变量后面。 | <table width="100%" border="0" cellpadding="0" cellspacing="0" class="EXAMPLE"><tr><td><div class="EXAMPLE"><a name="AEN253" id="AEN253"/><b>Example 5-3. cat</b><table border="0" bgcolor="#e0e0e0" width="100%"><tr><td><pre class="PROGRAMLISTING">&lt;?php$smarty-&gt;assign('articleTitle', "Psychics predict world didn't end");?&gt;&#13; &#13; index.tpl:&#13; &#13; {$articleTitle|cat:" yesterday."}&#13; &#13; OUTPUT:&#13; &#13; Psychics predict world didn't end yesterday.</pre></td></tr></table></div></td></tr></table> <table width="100%" summary="Footer navigation table" border="0" cellpadding="0" cellspacing="0"><tr><td width="33%" align="left" valign="top"><a accesskey="P" href="language.modifier.capitalize.html">Prev</a></td><td width="34%" align="middle" valign="top"><a accesskey="H" href="index.html">Home</a></td><td width="33%" align="right" valign="top"><a accesskey="N" href="language.modifier.count.characters.html">Next</a></td></tr><tr><td width="33%" align="left" valign="top">capitalize<br/> 首字符大写</td><td width="34%" align="middle" valign="top"><a accesskey="U" href="language.modifiers.html">Up</a></td><td width="33%" align="right" valign="top">count_characters<br/> 字符计数</td></tr></table>