PHP 3 专题 -- 从HTML中脱离

---摘自互联网

      这儿有三种方法从HTML中脱离,同时加入“PHP代码模式” 

        Example  5-1.  从HTML中脱离的方法 

1.  <?  echo("this  is  the  simplest,  an  SGML  processing  instruction\n");  ?> 

2.  <?php  echo("if  you  want  to  serve  XML  documents,  do  like  this\n");  ?> 

3.  <script  language="php"> 

echo  ("some  editors  (like  FrontPage)  don't 

like  processing  instructions"); 

</script>; 

4.  <%  echo("As  of  PHP  3.0.4  you  may  optionally  use  ASP-style  tags");  %>