In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "which annotation symbols are not allowed by PHP". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "which annotation symbols are not allowed by PHP"!
The comment symbol that is not allowed in PHP is "quotation marks"; there are two types of comments in PHP, single-line comments and multiline comments, where there are two ways to declare single-line comments, using the "#" and backslash "/ /", while multiline comments use the / * / symbol.
This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.
What are the annotation symbols that are not allowed by PHP?
The annotation symbols not allowed by PHP are D,'.
A 、 / /
B 、 #
C, / *
D,'
There are two types of comments in PHP, single-line comments and multiline comments.
1. Single-line comment
Each line must be marked with a separate comment, called a single-line comment. It is used for a short description. There are two ways to declare a single-line comment, using "#" and a backslash "/ /".
The sample code is as follows:
In the example in the code above, the second line defines a comment with "#" and a comment with "/ /" on lines 4 and 6, respectively.
The running results are as follows:
Https://www.yisu.com
Tip: the most widely used in single-line comments is the use of double slash "/ /" to define comments.
two。 Multiline comment
Multiline comments are used to comment multiline content and are often used to comment multiline text. The contents of the comments need to be included in (/ * and * /), starting with "/ *" and ending with "* /".
Tip: multiline comments cannot be used within each other.
The sample code is as follows:
The running results are as follows:
Https://www.yisu.com
Multiline comments are often used by developers to describe the functions and parameters of a function or method. It is also important to note that multiline comments are made up of "/ *" and "* /" tags, and it is not possible to ignore either.
At this point, I believe you have a deeper understanding of "which annotation symbols are not allowed by PHP". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 213
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.