What are the three annotation methods in php

藏色散人
Release: 2023-03-10 08:06:01
Original
7998 people have browsed it

php The three comment methods are: 1. Single-line comments through the "//" symbol; 2. Single-line comments through the "#" symbol; 3. Multi-line comments through the "/* */" symbol. piece.

What are the three annotation methods in php

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

Summary of the three ways of commenting in PHP

Any programming language has programming comments. The function of comments can be debugged, the function of the code can be described, etc. Let’s talk about the three comment methods in PHP

1, / / This is a single-line comment

2, # This is also a single-line comment

3, /* */Multi-line comment block

/*

This is Multi-line comment block

It spans

multiple lines

*/

Comments in PHP code will not be read as a program and implement. Its only purpose is to be read by code editors.

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of What are the three annotation methods 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