dateから曜日の取得 [php]
function getYoubi($date){
$sday = strtotime($date);
$res = date("w", $sday);
$day = array("日", "月", "火", "水", "木", "金", "土");
return $day[$res];
}
print getYoubi(20050911); //引数は年4桁月2桁日2桁
※上記の結果、以下のように出力されます。
日

