代码示例:(标识:demo_php_date_copyright)
<!DOCTYPE html>
<html>
<body>

版权所有 2010-<?php echo date("Y")?>

</body>
</html>
运行结果: