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

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. */
    ?>

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