Home > Article > PHP Framework > What are the comments of thinkphp5
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.
The operating environment of this article: Windows 10 system, ThinkPHP version 5, Dell G3 computer.
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
##Multi-line comments
{/* 这是模板 注释内容*/ }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!