Zend - The PHP Company




Code Gallery: rktaxali


nextmonth  

Type: code fragment
Added by: rktaxali
Entered: 30/01/2006
Last modified: 02/12/2005
Rating: - (fewer than 3 votes)
Views: 3364
nextmonth() returns a time number corresponding to the date one month from the passed time. It is different from strtotime("next month"). Function takes care of the leap year. E.g. for Jan 31, 2000, strtotime("next month") returns 2000-03-02 whereas nextmonth() returns 2000-02-29




Search