public function get_weekday($year, $month, $day) {
        return intval(date('w', mktime(12, 0, 0, $month, $day, $year)));
    }
public function get_weekday($year, $month, $day) {
        return intval(date('w', mktime(12, 0, 0, $month, $day, $year)));
    }
public function get_weekday ( $ year , $ month , $ day ) { return intval ( date ( 'w' , mktime ( 12 , 0 , 0 , $ month , $ day , $ year ) ) ) ; }
Returns the index of the weekday for a specific calendar date.

@param int $year
@param int $month
@param int $day
@return int
Returns the index of the weekday for a specific calendar date .