For every 4 floated elements, wrap to the next line:
<?=($b++%4==0)?'<br class="clr" />‘:NULL?>