cómo limitar este bucle .just ti loops..thanks para ayudarcómo limitar bucle foreach a tres bucles
<?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;
?>
donde hace $ sección [ 'artículo'] ¿viene de? –
posible duplicado de [limitar el número de veces que se ejecuta un ciclo en php] (http://stackoverflow.com/questions/1998204/limiting-number-of-times-a-loop-runs-in-php) –