thinkphp模çè°ç¨å½æ°æ¹æ³
{åé|å½æ°1|å½æ°2|å½æ°3=åæ°1,åæ°2,åæ°3,###}
###为第4个åæ°ï¼ä»£è¡¨åéæ¿æ¢ä¸ºç¬¬4个åæ°
举ä¾ï¼
{$username|substr=0,3}åæ é¢ä¸å3个å符
{$times|date='Y-m-d H:i:s'ï¼###}å°timesæ¶é´æ³è½¬æ¢ä¸ºæ¥ææ ¼å¼
==================================================
åå·æ§è¡å½æ°çç¨æ³ï¼è¾åºæ¹æ³å¹¶æ§è¡è¿åå¼
{:U('user/insert')}
举ä¾ï¼
{:time()} ä¼è¾åºå½åæ¥ææ ¼å¼ ï¼ä¼è¢«è§£ææ <?php echo time(); ?>
==================================================
波浪线å½æ°çç¨æ³ï¼æ§è¡æ¹æ³ä½ä¸è¾åº
{~function()}
举ä¾ï¼
{~substr("aaaaaaa",3)} æ§è¡åä¸ä¼è¾åºï¼ä¼è解ææ <?php substr ?>
============================================
{$Think.get.urlä¸getè¿æ¥çåæ°}
{$Think.server.serverä¸çåé}
{$Think.session.sessionä¸çid|md5} å¦æéè¦çè¯è¿å¯ä»¥å¯¹å¼MD5ä¸ä¸
{$Think.cookie.cookieä¸çid}
=============
{$Think.config.db_host} 读åconfigä¸çé 置信æ¯
{($title)?($title):'å½å没æå¼'} å½ååæ°è¥æ²¡æå¼ï¼åæ¾ç¤ºåé¢çæè¿°
==================
<switch name="">
<case value="1">aaaaaa</case>
<case value="2">bbbbbbbbb</case>
<default />没ææ°æ®
</switch>
===============
<eq name="a" value="3">açäº3<else />aä¸çäº3</eq>
<eq name="a|strlen" value="1">açé¿åº¦çäº1<else />aé¿åº¦ä¸çäº1</eq>
=================
<in name="a" value="1,2,3,4">åéaå¼å¨1,2,3,4èå´å å°±æå°</in>
<notin name="a" value="1,2,3,4">åéaå¼ä¸å¨1,2,3,4èå´å å°±æå°</notin>
æè ç¨
<range name="a" value="1,2,3,4" type="in">aå¨1,2,3,4èå´å </range> //typeæ¹ä¸ºnotinå°±æ¯ä¸å¨ï¼è¯¥æ¹æ³å¯æ¿ä»£inånotin
===============
<empty name="a">aåé为空</empty>
<notempty name="a">aåéä¸ä¸ºç©º</notempty>