$weekjp_array = array('日', '月', '火', '水', '木', '金', '土'); //日付を指定 $pyear = 2011; $pmonth = 04; $pday = 24; //タイムスタンプを取得 $ptimestamp = mktime(0, 0, 0, $pmonth, $pday, $pyear); //曜日番号を取得 $weekno = date('w', $ptimestamp); //日本語の曜日を出力 $weekjp = $weekjp_array[$weekno]; echo $weekjp . '曜日です';
0 件のコメント:
コメントを投稿