how to define html tag after each 5 iteration in foreach loop
问题 I just want to know how to define HTML Tag <br clear="all"> after each 5 iteration in foreach loop here is my code <?php $i=1; foreach($videoEntries as $data){ ?> <div class="item-main"> <div class="item"> <a href="javascript:;" onclick="ratePopup(2)" title="<?php echo $data->video_name;?>"> <div class="overlaid"></div> <img src="<?php echo $image_url;?>" width="93" height="89"/> </a> </div> <p title="Trailer Name"><strong><?php echo $data->video_name;?></strong></p> <p title="Released Date">