Home > Backend Development > PHP Tutorial > 如何去掉php源码中的注释语句?

如何去掉php源码中的注释语句?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:45:58
Original
1284 people have browsed it

比如我的源码中有一些这样的注释语句,我想在浏览器浏览源码的时候隐藏这些注释内容,有什么方法么?

回复内容:

比如我的源码中有一些这样的注释语句,我想在浏览器浏览源码的时候隐藏这些注释内容,有什么方法么?

php中的注释浏览器查看网页源码是不可见的吧,只能看到<!-- -->形式的html注释。要想源代码中不可见,改成php的注释就可以了<?php /*这样的注释是不会输出到html中的*/?>

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template