Home  >  Article  >  Backend Development  >  PHP (2) Program annotation method

PHP (2) Program annotation method

黄舟
黄舟Original
2016-12-27 10:06:091769browse

PHP has three comment symbols:

1. Multi-line comment symbols closed with "/*" and "*/",

2. Single-line comments starting with "//",

3. Single-line comments starting with "#".

Comments must be written above or to the right of the commented code, not below the code. The following example:

Multi-line comments are as follows:

The above is the PHP (2) program comment method Content, please pay attention to the PHP Chinese website (m.sbmmt.com) for more related content!


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