Home >Backend Development >PHP Problem >How to invalidate code in php
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.
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
The second comment method: also a single-line comment, is to use '#' symbol
The third comment method: multi-line comment, use the '/**/' symbol, and you can break the line in the middle
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!