時間を表示(getdate, hours, minutes,)
<html> <head> <title>時間を表示</title> </head> <body> <center> <?php $today = getdate(); // 日時を取得 printf("%d時%02d分%02d秒\n", $today[hours], $today[minutes], $today[seconds]); // 時間を表示 ?> </center> </body> </html>
〔 実行する 〕