26 lines
763 B
Markdown
26 lines
763 B
Markdown
---
|
||
title: Syntax
|
||
localeTitle: Синтаксис
|
||
---
|
||
## Синтаксис
|
||
|
||
PHP - это язык, позволяющий включать динамический контент в другие статические веб-страницы. Он написан inline с html, просто переименуйте файл .html в .php (для установки веб-сервера должен быть установлен 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) |