day_of_week ()

int day_of_week ($year, $month, $day);
      

This function returns the day of the week of the specified date. The returned values range from 0 (Monday) to 6 (Sunday).