1.xml style (standard style is recommended)
The code is as follows:
<?php echo"这是xml风格的标记"; ?>
xml style tags are commonly used tags and recommended tags. The server cannot disable this style. The tag can be used in xml and xhtml.
2.Script style
The code is as follows:
<script languange="php"> echo'这是脚本风格的标记'; </script>
3.Short style
The code is as follows:
Note: You need to set short _open_tag=on in php.ini, the default is on, or add the –enable-short-tags option when compiling PHP. (PHP 3 version can also activate the use of short tags through the short_tags() function.)
4.asp style
The code is as follows:
<% echo'这是asp风格的标记'; %>
Note: It needs to be in the php.ini configuration file Turn on asp_tags = on;
The above asp style and short style need to be set in php.ini, which are not supported by default.
Note: Support for ASP style tags was added in version 3.0.4.
The above is the detailed content of Full form of php tag pair?. For more information, please follow other related articles on the PHP Chinese website!