如何..just你loops..thanks幫助如何foreach循環限制在三個環路
<?php
foreach($section['Article'] as $article) :
?>
<tr>
<td>
<?php
if ($article['status'] == 1) {
echo $article['title'];
}
?>
</td>
<td>
<?php
if($article['status']== 1) {
echo ' '.$html->link('View', '/articles/view/'.$article['id']);
}
?>
</td>
</tr>
<?php
endforeach;
?>
在哪裏呢$節[ '文章']來自? – 2012-01-06 23:41:02
[限制循環在php中運行的次數]的可能重複(http://stackoverflow.com/questions/1998204/limiting-number-of-times-a-loop-runs-in-php) – 2013-12-19 09:58:23