function dayatstart ($day, $month, $year) {
return date("l", mktime(0,0,0,$month, $day, $year));
}
date("l" (lowercase "L") will return the textual name of the day (i.e. "Friday")
or
function dayatstart($day, $month, $year) {
return date("w", mktime(0,0,0,$month, $day, $year));
}
date("w" will return an int corresponding to the day of the week (0 = Sunday, 6 = Saturday).
All of this can be found here:
http://www.php.net/manual/function.date.php
Hope that helps!
Chris King