$pfName='market_global';
?>
<!-- <?php if(($pfName == 'market_global')) { ?> -->
<th style="width: 80px">GG</th>
<!-- <?php } else { ?> -->
<th style="width: 80px">IOS</th>
<!-- <?php } ?> -->
上班即使有注释符号,还是起作用的,为什么,去掉注释符号还是起作用????
why??
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
那种注释只能对
html其作用好吧!想注释php在<?php ?>里面加斜杠。例如<?php //if(($pfName == 'market_global')) { ?>试试看<!-- -->
这个注释的是html代码,不是注释php
php代码依然会执行的
你写的这个是html的注释不是php的注释
php的注释有
/.../
//
我初学PHP的时候也有这样的错愕.
<!---->是HTML的注释符号,是讲给浏览器听的.而PHP解释器只会认
// /**/ #这些PHP的注释符号.