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
Post a Comment