Php 数个月后

Php 数个月后,php,date,calendar,Php,Date,Calendar,我正在使用我的页面。它需要使用此时间格式:Y,n(例如:2008,3) 如何从现在起12个月内生成 我试过这个: $myCelandar->showCalendar(date("Y".","."n")); $myCelandar->showCalendar(date("Y".","."n", strtotime("+1 month") )); 但是它不起作用。“Y”,“n”那里发生了什么?应该是'Y,n'你必须告诉我们谁是最大的?否决票,因为你把答案放在你的问题中只是需要更改str

我正在使用我的页面。它需要使用此时间格式:Y,n(例如:2008,3)

如何从现在起12个月内生成

我试过这个:

$myCelandar->showCalendar(date("Y".","."n"));
$myCelandar->showCalendar(date("Y".","."n", strtotime("+1 month") ));

但是它不起作用。

“Y”,“n”那里发生了什么?应该是
'Y,n'
你必须告诉我们谁是最大的?否决票,因为你把答案放在你的问题中只是需要更改
strotime
值。
   $myCelandar->showCalendar(date("Y,n", strtotime("+1 year")));