PHP: show entrys per month
<pre><code>&lt;?php
        while($show = $grabAlbums-&gt;fetch() ){
            $date_headers_array[date('m', $show["date"])][date('d', $show["date"])][] = $show;
        }

foreach ($date_headers_array as $month =&gt; $v1) {
    foreach ($v1 as $day =&gt; $v2) {
    ?&gt;
&lt;h3 class="EventlistHeader" style="margin-bottom: 4px;"&gt;
    &lt;?php 
    echo htmlentities(ucfirst(strftime("%A", $v2[0]['date'])))." ";
    echo $day.". ".strftime('%B', $v2[0]['date']); 
    ?&gt;
&lt;/h3&gt;
&lt;?php
foreach ($v2 as $album) {
echo $album["content"] "&lt;br&gt;";
}
?&gt;
</code></pre>

<p>This is making a h3 header for each day that exists in $show["date"]</p>

<p>What i am looking for to do is to show header per month instead.</p>

<p>It shows like this now:</p>

<pre><code>**Tuesday 12 july:**
content
**Wednesday 13 july:**
content
**Thursday 28 july:**
content
</code></pre>

<p>I want it to show like this:</p>

<pre><code>**July**
12th, content
13th, content
28th, content
</code></pre>

<p>** is the h3 header</p>

<p>how can i do this?</p>
