Home > headlines > body text

php basic syntax

无忌哥哥
Release: 2018-06-27 17:01:09
Original
1643 people have browsed it

PHP basic syntax:

* 1. Tag: start with end 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;;
?>
Copy after login
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template