Possible Duplicate:
how to generate monthly days with PHP?
With PHP, given a month in this format: 10 – October, 11 – November, how would I populate an array where the keys represent each day for the given month.
So,
e.g for February you’d have an array with keys 1-28.
You can use this function: