php - How to group elements 5 by 5?
<p>I have an array of about 40-something elements that I need grouped 5 by 5 like this:</p>

<pre><code>&lt;div class="five"&gt;
1
2
3
4
5
&lt;/div&gt;
&lt;div class="five"&gt;
6
7
8
9
10
&lt;/div&gt;
</code></pre>

<p>What would be an elegant solution?</p>
