我希望从当月开始按降序显示月份。 例如:
The current month is October.
So .. i want to display all 12 months like this..
october
september
august
july
june
may
april
march
february
january
december
november
请注意......它应该是动态的...在11月份,它应该从11月开始
这可能会有所帮助......以下代码可以按升序打印天数?
for ($i = 0; $i < 30; $i++)
{
$timestamp = time();
$tm = 86400 * $i; // 60 * 60 * 24 = 86400 = 1 day in seconds
$tm = $timestamp - $tm;
echo $the_date = date("Y-m-d", $tm);
echo "<br/>";
}