Home > Article > Backend Development > PHP (2) Program annotation method
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!