<!DOCTYPE html> <html> <body> <?php date_default_timezone_set("Asia/Shanghai"); echo "当前时间是 " . date("h:i:sa"); ?> </body> </html>