Hi Tyler - did you check the date functions in the manual?
date() with the 'n' format let's you grab the month's ordinal from a unix
timestamp, and mktime() let's you easily create unix timestamps
$next_mon = date("n", mktime(0,0,0,date("m")+1));
jason
> Hello,
>
> How do I get the number of the next month (Ex: 4). And when the current
> month reaches 12, the next month would be 1 and the next year would be
2002.
> Anybody know how I can accomplish this?
>
> Thanks,
> Tyler Longren
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]