日付と時間 2−1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja"><head>
<meta http-equiv="Content-type" content="text/html; charset=EUC-JP">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="../style.css">
<title>今日の日付と時間</title></head>
<body><div class="file2">
<!--ここからPHPの始まりです。//-->
<?php
error_reporting(1);
$youbi = array("日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日");
$yb = date(w);
$patern= date("Y年m月d日 $youbi[$yb] A H時i分s秒");
echo $patern."<br>";
?><!--これでPHPは終わりです。//-->
</div></body></html>