Home  >  Article  >  Backend Development  >  PHP markup style_PHP tutorial

PHP markup style_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:46:17830browse

PHP, like several other web languages, uses a pair of tags to include the PHP code part to distinguish it from the HTML code. PHP has a total of 4 tag styles.

1.xml style

echo "This is an xml style tag";

?>

XML-style tags are commonly used tags and recommended tags. The server cannot disable them. This style of tags can be used in both xml and xhtml.

2.Script style

3. Short style

4.asp style

<%

echo'This is an asp style tag';

%>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/478598.htmlTechArticleLike several other web languages, php uses a pair of tags to include the php code part so that it can be To distinguish between html code and php, there are 4 markup styles in total. 1.xml style ?php echo this is...
Statement:
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