<?php $html=<<<TEMP1 <title>PHP输出HTML代码</title> <body> <a href=#>转向一个其他地址的链接</a> </body> TEMP1; echo $html; ?>