txt文件中包含空格、
如何原封不动的输出到网页中
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --><?php //*****<br/>***** if($a){ echo "+"; }else{ echo "#"; } //***** ***** ?>
<?php <br /> <br> //*****<br>*****<br> if($a){<br> echo "+";<br> }else{<br> echo "#";<br> }<br> //***** *****<br>?><br><br>
...
<?php $text = <<<TXT //*****<br/>***** if($a){ echo "+"; }else{ echo "#"; } //***** ***** TXT; echo htmlentities($text); #页面效果 //*****<br>***** if(){ echo "+"; }else{ echo "#"; } //***** ***** #源码 //*****<br/>***** if(){ echo "+"; }else{ echo "#"; } //***** ***** ?> <div class="clear"> </div>