Home  >  Article  >  Backend Development  >  How to invalidate code in php

How to invalidate code in php

藏色散人
藏色散人Original
2021-11-09 10:02:593172browse

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!

Statement:
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