rownum

PHP Smarty

Smarty - the compiling PHP template engine
Prev 来源:PHP中文社区 Next

rownum

	{section name=customer loop=$custid}
	{$smarty.section.customer.rownum} id: {$custid[customer]}<br>
	{/section}


	OUTPUT:

	1 id: 1000<br>
	2 id: 1001<br>
	3 id: 1002<br>

Prev 来源:PHP中文社区 Home Next
last Up loop