I am wondering what am I doing wrong?
I create php loop to display next 3 years months.
My code:
<div class="input-group col-lg-2 col-md-12 col-sm-12 search">
<label class="bd-form-label">Dates</label>
<select name="date" id="search_date">
<?php
echo '<option value="all">Any Month</option>';
for ($i = 0; $i <= 36; $i++) {
$time = strtotime(sprintf('+%d months', $i));
$label = date('F Y', $time);
echo "<option value='$label'>$label</option>";
}
?>
/select>
</div>
It does displaying all months but not February(2018-2019-2020)
Any feedback? Is it something with my code? Cause I can not find any errors