PHP Loop do some once the loop as finished

vikidigi

New Member
I have this PHP loop, \[code\]foreach($returnedContent as $k => $v) { $imageName = str_replace($replaceData, "", $v['contentImageName']); echo "<a class='contentLink' href='".base_url()."welcome/getFullContent/$v[contentId]'>"; echo "<img src='http://stackoverflow.com/media/uploads/".strtolower($v['categoryTitle'])."/".$imageName."_thumb.png' alt='$v[contentTitle]' />"; echo "</a>";}\[/code\]Once the lopp has finished I was hoping it would be possible to do loop to print x amount of grey boxes is this possible and if so how, basically if the first loop returns 1 item i need the second loop to print out 11 boxes, if the first one returns 9 items I need the second loop to return 3 boxes.Make sense? Can anyone help me?
 
Back
Top