首页 > Web开发 > 详细

【php】 php 的注释和结束符号之间的关系

时间:2018-09-05 00:23:05      阅读:202      评论:0      收藏:0      [点我收藏+]

Closing PHP tags are recognised within single-line comments:

    <?php
    // Code will end here ?> This is output as literal text.

    <?php
    # Same with this method of commenting ?> This is output as literal text.

However they do not have an effect in C-style comments:

    <?php
    /* Code will not end here ?> as closing tags are ignored inside C-style comments. */
    ?>

【php】 php 的注释和结束符号之间的关系

原文:https://www.cnblogs.com/china-flint/p/9589259.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!