php标记风格_PHP教程

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

php和其他几种web语言一样,都是使用一对标记将php代码部分包含起来,以便和html代码相区分,php一共4中标记风格。

1.xml风格

echo"这是xml风格的标记";

?>

xml风格的标记是常用的标记,也是推荐使用的标记,服务器不能禁用,该风格的标记在xml,xhtml中都可以使用。

2.脚本风格

echo'这是脚本风格的标记';

3.简短风格

4.asp风格

echo'这是asp风格的标记';

%>

www.bkjia.com true http://www.bkjia.com/PHPjc/478598.html TechArticle php和其他几种web语言一样,都是使用一对标记将php代码部分包含起来,以便和html代码相区分,php一共4中标记风格。 1.xml风格 ?php echo这是...
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
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!