PHP3的程序模式
有三种方法从HTML进入"PHP程序模式": 第一种方法: <?
PHP3语句; ?>
| 如: <? echo("this is the simplest, an SGML processing instruction\n"); ?> |
第二种方法: <?PHP PHP3语句; ?>
| 如: <?php echo("if you want to serve XML documents, do like this\n"); ?> |
第三种方法: <script
language="php">
PHP3语句;
</script>
| 如: <script language="php"> echo("some editors (like FrontPage) don't like processing instructions"); </script> |