Home > php教程 > php手册 > 归纳总结之PHP基本语法格式

归纳总结之PHP基本语法格式

PHPz
Release: 2018-10-17 15:20:08
Original
1967 people have browsed it

这篇文章主要介绍了PHP 中的基本语法格式,具有一定的参考价值,感兴趣的朋友可以参考一下。

PHP 基本语法格式

标准代码如下:

代码如下:

<?php 
... 
?>
Copy after login

短标签模式(此模式需要修改PHP配置,让PHP支持短标签模式):

代码如下:

<? 
... 
?>
Copy after login

注释:

代码如下:

/* ...*/ 
// 
#
Copy after login

 

【相关教程推荐】

1. php编程从入门到精通全套视频教程
2. php从入门到精通 
3. bootstrap教程

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template