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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -