date - PHP iterate days of month given month and year -


how can print (echo) days of unknown month if month , year parameters?

thank you.

to number of days in given month of given year can use cal_days_in_month

echo cal_days_in_month(cal_gregorian, 10, 2010); // prints 31 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -