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:
<?php #这是单行注释 echo "单行注释"; // 这是单行注释 ?>
Multi-line comments are as follows:
<?php echo "多行注释"; /* 这是多行注释 这是多行注释 */ ?>
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!