I want to be able to come up with a php function that takes in the parameters year, month and the day and returns the dates for the given day in an array.
for eg. lets say the function looks like this:
function get_dates($month, $year, $day)
{
....
}
if I call the function as below:
get_dates(12, 2011, 'Sun');
I should get an array containing the values:
2011-12-04
2011-12-11
2011-12-18
2011-12-25
What would the function code look like?