How to invalidate code in php

藏色散人
Release: 2023-03-13 18:54:01
Original
3159 people have browsed it

php method to invalidate the code: 1. Comment out a single line of PHP code through the // or # symbol; 2. Comment out multiple lines of PHP code through the /* */ symbol.

How to invalidate code in php

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

php How to invalidate the code?

In PHP, you can use comment symbols to invalidate PHP code. Single-line comments can use // or # symbols, and multi-line comments can use /* */ symbols.

The first comment method: use double slashes '//' as a single-line comment

How to invalidate code in php

The second comment method: also a single-line comment, is to use '#' symbol

How to invalidate code in php

The third comment method: multi-line comment, use the '/**/' symbol, and you can break the line in the middle

How to invalidate code in php

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to invalidate code in php. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!