This article mainly introduces the PHP language comments, single-line comments and multiple lines of comments, the need for friends can refer to, I hope to help the small partners just getting started PHP better learning and mastering PHP single-line comments and multi-line comments.
1. PHP Single-line comment:
PHP Comment Symbols://
PHP Single-line Comment example:
<?php//Output Script Home echo script Home "; >
2. PHP Multi-line comments
PHP Multi-line Comment symbol:/* */
PHP Multi-line Comment example:
<?php/* Output Script Home is a professional website construction resources, scripting Learning Web site, providing ASP, PHP, ASP, JavaScript, jquery, VBScript, DOS batch processing, Web page production, network programming, Website construction and other programming materials. */?>
Basically this, very basic, is easy to forget.
Related recommendations:
PHP Comment Syntax specification and naming specification summary sharing
How the horizontal line callout and code comment should be used in HTML
JavaScript matches the regular expression code of the annotations in JS