smarty 如何实现i++
在html页面 smarty如何实现i++
如何把下面这段C#代码翻译成smarty下的代码?
<%
int i_count = 0;
foreach (GridViewRow row in this.GridView1.Rows)
{
if (i_count%4 == 0)
{
%>
.1..
<%
}
else
{
%>
.2..
<%
}
i_count ++ ;
}
%>
我写的是这样,但是ERROR
{assign var="i_count"}
{foreach from=$row item=item}
{if $i_count mod 4}
.2..
{else}
.1..相关文章
ini_set()在PHP中的作用是什么?
在PHP中的readlink()函数
我们如何编写PHP脚本来释放与MySQL结果关联的游标内存?
PHP intdiv() 函数
我们如何使用PHP脚本删除MySQL数据库?
本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
更多热门AI工具









