problem is that i don't know how to get first day of the week as numeric. here is what i'm trying to do and how i'm gonna use it:
this is kind of calendar that has interval, calendar is filled from 9 months up to three years
$week = 16;
$year = 2004;
$interval = 6;
for($a=0;$a<=$r_interval*9;$a++) {
/// here is the problem
/// i need to get something like this
/// i know this is not correct ;)
/// date("d", mktime(0,0,0,$week,$year);
/// so i have to get replace date("d") below with variable
/// that has numeric day value
$d = date("Y,W",mktime (0,0,0,date("m")+$a, date("d"), $year));
$d = explode(",",$d);
// ....
}
tia
-t-