Home  >  Article  >  php basic syntax

php basic syntax

无忌哥哥
无忌哥哥Original
2018-06-27 17:01:091608browse

PHP basic syntax:

* 1. Tag: start with 0da1cce056586c1eeaa7b0d40412ff09end with tag. If it is a pure PHP code script, the end tag should be omitted

* 2. Statement: Each statement must end with a semicolon;, the last statement can be omitted, but it is recommended to add a semicolon

* 3. Comment: Exactly the same as javascrpt, multiple lines Use:\/*Content*\/, use in a single line: //or #(linux style)

* 4. Function: PHP (Hypertext Preprocessor), translated as: Hypertext Preprocessor

* What is hypertext? It is actually an .html file. The PHP language is essentially used to create html files.

<?php
echo &#39;<h2 style="color: #F00">Hello World~~</h2>&#39;;
?>
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