I have problem in php find start date & end date of month & year , when i know the year and month ?
ex:
input - > year = 2011 , month = 0
Use date (t format gives days in year) and create a time for it:
$year = 2011; $month = 6; $starts = 1; $ends = date('t', strtotime($month.'/'.$year)); //Returns days in month 6/2011