Home>Article>Backend Development> PHP language comments, single-line comments and multi-line comments

PHP language comments, single-line comments and multi-line comments

不言
不言 Original
2018-04-18 14:38:55 2978browse

This article mainly introduces PHP language comments, single-line comments and multi-line comments. It has certain reference value. Friends in need can refer to it

PHP language comments are divided into single-line comments and multi-line comments. .

1. PHP single-line comment:

PHP comment symbol://

PHP single-line comment example:



2. PHP multi-line comments

PHP multi-line comment symbols:/ * */

PHP multi-line comment example:



Basically that’s it, very It's basic and easy to forget.


The above is the detailed content of PHP language comments, single-line comments and multi-line comments. For more information, please follow other related articles on the PHP Chinese website!

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