Home > Backend Development > PHP Tutorial > Full form of php tag pair?

Full form of php tag pair?

怪我咯
Release: 2023-03-10 15:28:01
Original
2815 people have browsed it

1.xml style (standard style is recommended)
The code is as follows:

<?php 
echo"这是xml风格的标记"; 
?>
Copy after login

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&#39;这是脚本风格的标记&#39;; 
</script>
Copy after login

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&#39;这是asp风格的标记&#39;; 
%>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template