I'm working with twitter bootstrap framework and need to display a long resultset with the foreach control structure.
To gain space, I'd like to display 4 results per "bootstrap row", like this:
<div class="row">
<div class="col-md-3">
1 table row
</div>
<div class="col-md-3">
1 table row
</div>
<div class="col-md-3">
1 table row
</div>
<div class="col-md-3">
1 table row
</div>
</div>
<div class="row">
<div class="col-md-3">
1 table row
</div>
<div class="col-md-3">
1 table row
</div>
<div class="col-md-3">
1 table row
</div>
<div class="col-md-3">
1 table row
</div>
</div>
//...more bs rows
How should I build the php foreach structure to render the above html?
Thanks