如何控制foreach只循环8次
{foreach$lost1as$lost}<divclass="think"><divclass="type">{$lost['name']}</div><divcla...
{foreach $lost1 as $lost}
<div class="think">
<div class="type">{$lost['name']}</div>
<div class="cause"><a href="Detail.php?id={$lost['id']}">{$lost['local']}</a></div>
<div class="time">{$lost['time']}</div>
</div>
{/foreach} 展开
<div class="think">
<div class="type">{$lost['name']}</div>
<div class="cause"><a href="Detail.php?id={$lost['id']}">{$lost['local']}</a></div>
<div class="time">{$lost['time']}</div>
</div>
{/foreach} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询