主页
PHP
PHP getdate() 函数
tryphp_func_getdate
运行 ❯
×
更改方向
保存代码
更改主题
<?php // Print the array from getdate() print_r(getdate()); echo "
"; // Return date/time info of a timestamp; then format the output $mydate=getdate(date("U")); echo "$mydate[weekday], $mydate[month] $mydate[mday], $mydate[year]"; ?>