文章搜索:
·PHP技术论坛 ·PHP源码下载 ·招聘求职
好记性不如常笔记,学好PHP,需要养成做笔记的好习惯,马上申请我的在线笔记,终生免费>>
   你的位置: PHP教程部落 > PHP Smarty专题 > ldelim,rdelim

ldelim,rdelim

ldelim,rdelim

ldelim and rdelim are used for displaying the literal delimiter, in our case "{" or "}". The template engine always tries to interpret delimiters, so this is the way around that.

Example 7-12. ldelim, rdelim

{* this will print literal delimiters out of the template *}



{ldelim}funcname{rdelim} is how functions look in Smarty!





OUTPUT:



{funcname} is how functions look in Smarty!