loop

PHP Smarty

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

loop

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

	There were {$smarty.section.customer.loop} customers shown above.

	OUTPUT:

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

	There were 3 customers shown above.

Prev 来源:PHP中文社区 Home Next
rownum Up show