每一种编程语言都有属于自己的注释规则,PHP也是一样的。
<?php echo "this is a test";//this is a one-line c++ style comment
/*This is multi line comment
yet another line of comment*/
echo "this is another test";
echo 'one Final test'; #this is a one-line shell-style comment
?>
- 单行注释不会注释掉PHP的结束符。、
- 多行注释会注释掉结束符
网友评论