php输出一段字符块

<?php
$str = <<<EOD
//some codes you want to write
//the end of the block should be a new line and have no space

EOD;

echo $str;

?>

 

posted @ 2010-04-21 10:57  DavidHHuan  阅读(1579)  评论(0编辑  收藏  举报