刚接触PHP。问个模板内循环数据的问题。请问下面代码中$A $B $C三个变量分别代表的是什么啊?<!--{loop $A $B $C}-->
<tr>
<td height="22" align="center">$user</td>
</tr>
<!--{/loop}-->
<tr>
<td height="22" align="center">$user</td>
</tr>
<!--{/loop}-->
一个是数组
一个是数组的值
一般都是这个解释
id: {$custid[customer]}<br />
{/section}
$custid是要循环的变量
大概是这样的吧。。
楼主的
{loop $A $B $C}
是什么模版呢
比如模板定义成这样 (index.html):
$TITLE是需要替换的内容,没有用string replace的方式,用echo.<html><head><title>ssss</title></head>
<body>
标题:<?php echo $TITLE; ?> </br>
</body></html>或者,这根本不能称之为模板?