美文网首页PHP实战PHP经验分享
PHP基础教程002:注释

PHP基础教程002:注释

作者: 我加入简书的路程 | 来源:发表于2018-03-18 15:07 被阅读18次

    每一种编程语言都有属于自己的注释规则,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的结束符。、
    • 多行注释会注释掉结束符

    相关文章

      网友评论

        本文标题:PHP基础教程002:注释

        本文链接:https://www.haomeiwen.com/subject/qdveqftx.html