【PHP】今日の日付
<?php $today = getdate(); echo ("今日の日付は $today[year]年$today[mon]月$today[mday]日<br>\n"); echo ("$today[weekday] $today[month]/$today[mday]/$today[year]<br>\n"); echo ("今年の1月1日から $today[yday]日目です"); ?>
<?php $today = getdate(); echo ("今日の日付は $today[year]年$today[mon]月$today[mday]日<br>\n"); echo ("$today[weekday] $today[month]/$today[mday]/$today[year]<br>\n"); echo ("今年の1月1日から $today[yday]日目です"); ?>