get Month name given start date and end date
<p>Hi have a start date and end date.</p>

<p>but i did't get the month of the given date</p>

<pre><code>// Start date
$date = '2013-02-13';
// End date
$end_date = '2013-03-07';
$months = array(date('m', $time1));
while (strtotime($date) &lt;= strtotime($end_date)) {
    //echo "$date&lt;br&gt;";
    $date = date ("Y-m-d", strtotime("+1 day", strtotime($date)));


    $months= date ("m", strtotime("+1 month", strtotime($date)));
    $mond = $months-1;
    //echo $mond;
    echo $mond."_".$date."&lt;br&gt;";
</code></pre>
