Code: Select all
//Startdag Måndag
$startday = $startday-1;
if ($startday == '-1'){
$startday = '6';
}
//--------
Code: Select all
$startday = date("w", mktime(0,0,0,$month,1,$year));
Code: Select all
$days = array("sun","mon", "tue", "wed", "thu", "fri", "sat");
Code: Select all
$days = array("mon", "tue", "wed", "thu", "fri", "sat","sun");