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

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

PHPz
PHPzOriginal
2016-06-06 20:00:552090browse

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

PHP 基本语法格式

标准代码如下:

代码如下:

<?php 
... 
?>

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

代码如下:

<? 
... 
?>

注释:

代码如下:

/* ...*/ 
// 
#

 

【相关教程推荐】

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

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