PHP markup style_PHP tutorial

WBOY
Release: 2016-07-13 17:46:17
Original
842 people have browsed it

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...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!