$testArr = array("0", "1", "2", "3", "4", "5", "6");
$counter = 0;
foreach($testArr as $currentItem)
{
if($counter > 2)
{
echo $currentItem."\n";
}
$counter++;
}
<?php
$i = 0;
foreach($rows as $row) { if ($i == 1) { ?>
<div class="flexslider slider-album">
<ul class="slides">
<?php foreach ($row['albums_image'] as $image_album) { ?>
<li>
<img src="<?php echo $image_album['sizes']['album-image']; ?>">
</li>
<?php } ?>
</ul>
</div>
<?php } $i++; } ?>