Home  >  Article  >  PHP Framework  >  What are the comments of thinkphp5

What are the comments of thinkphp5

WBOY
WBOYOriginal
2022-04-06 10:14:222627browse

Thinkphp5 comments: 1. Single-line comments, the syntax is "{/*Comment content*/}" or "{//Comment content}"; 2. Multi-line comments, the syntax is "{/*Multiple Line comment */}". The annotation content of thinkphp will not be displayed on the source code of the web page and is only for reference and identification by template producers.

What are the comments of thinkphp5

The operating environment of this article: Windows 10 system, ThinkPHP version 5, Dell G3 computer.

What are the comments of thinkphp5

The template supports the comment function. The comment text will not be displayed on the final page and is only for reference and identification by the template maker.

Single-line comments

{/* 注释内容 */ } 或 {// 注释内容 }

Rendering

What are the comments of thinkphp5

##Multi-line comments

{/* 这是模板
注释内容*/ }

What are the comments of thinkphp5

Template comments support multiple lines. Template comments will be automatically deleted after generating the compilation cache file, which is different from Html comments.

Recommended learning: "

PHP Video Tutorial"

The above is the detailed content of What are the comments of thinkphp5. 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