freeCodeCamp/guide/chinese/php/syntax/index.md

26 lines
513 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
title: Syntax
localeTitle: 句法
---
## 句法
PHP是一种允许您在其他静态网页中包含动态内容的语言。它是用html内联编写的只需将.html文件重命名为.phpweb-server必须安装php才能开始使用。
```PHP
<!DOCTYPE html>
<html>
<head>
<title>PHP Example</title>
</head>
<body>
<h1>PHP Example</h1>
<?php
echo "Hello World from PHP!";
?>
</body>
</html>
```
#### 更多信息:
* [php.net - PHP文档](https://secure.php.net/docs.php)