<?php
$now = time();
$currentMonth = date('n', $now);
$year = date('Y', $now);
$nextMonth = $currentMonth + 1;
$secondNextMonth = $currentMonth + 2;
echo '<th>' . date('M', $now) . '</th>';
echo '<th>' . date('M', mktime(0, 0, 0, $nextMonth, 1, $year)) . '</th>';
echo '<th>' . date('M', mktime(0, 0, 0, $secondNextMonth, 1, $year)) . '</th>';
preferences:
34.02 ms | 402 KiB | 5 Q