在HTML代码中使用PHP注释超过HTML注释有什么好处? [英] Is there any benefit in using PHP comments over HTML comments in HTML code?
本文介绍了在HTML代码中使用PHP注释超过HTML注释有什么好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HTML评论:
<! - 评论在这里。 - >
PHP注释:
<?php // Comment here。 ?>
解决方案
与HTML注释不同,PHP注释不会显示在最终输出。这通常是可取的,因为评论通常是内部注释,没有任何人的业务。
I heard someone say that there is, so I was wondering.
HTML comment:
<!-- Comment goes here. -->
PHP comment:
<?php // Comment goes here. ?>
解决方案
Unlike HTML comments, PHP comments don't show up in the final output. That is often desirable, as comments are usually internal notes that are none of anybody's business.
这篇关于在HTML代码中使用PHP注释超过HTML注释有什么好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文